List Open Ports

The following are two command line tools for listing open ports on Linux. It seems I can never remember them when I need them, so I thought I would wright them down here.

netstat -lptu

lsof -i

Both of these commands require root privileges to run.

Thanks to CyberCiti for the info.

Leave a comment

Your email address will not be published. Required fields are marked *