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.