Cogs and Levers A blog full of technical stuff

Listing open ports and who owns them

To list all of the network ports and users that own them you can use the lsof command.

sudo lsof -i

The netstat command is also available to provide the same sort of information.

sudo netstat -lptu