Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc.

List All Ports (both listening and non listening ports)
#netstat -a

List all tcp ports
#netstat -at

Find out on which port a program is running
#netstat -ap

Find more on netstat manual.

 

 

 

 

 

Linux: Netstat Command Examples
Tagged on:                 

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.