see which ports are open and which application is on each one

you can see which ports are open and which application is on each one by typing in this command.

sudo netstat -plunt