List Which Ports Are Listening – Open Ports – Open Connections

This is the most reliable method because is actually scans the ports:

nmap -sT -O localhost

Other methods based on internal checks that give you also the information about the program using the ports:

netstat -anp
lsof -i
This entry was posted in Linux Command Line, System Administration. Bookmark the permalink.

Leave a Reply