Network

Check which ports are open

Following command will help you to find out which process is using which port:

netstat -plant

Followng command will print the list of all the open port files:

lsof -i