Linux – Find which ports are open

While not exactly showing what is open on which port, you can see which ports are occupied with a:

netstat -nap

The output is filtered based on which user is looking at the information.  Perform the command as the super user to see the ports occupied by all processes.

Original source:

Published by

Brian Esserlieu

Currently work as a software engineer at Salesforce in San Francisco. Graduated from UCSD, in La Jolla, California, USA, with a B.S. in Computer Science.

Leave a Reply