Skip to content

Open ports

Commands for listing listening ports and the processes that own them.

The following command helps find which process is using which port:

Terminal window
netstat -plant

The following command prints open network files (sockets):

Terminal window
lsof -i