network icon

Become a Pro in Netstat

List all open ports with netstat -a:

List all TCP connections with netstat -at:

List all UDP connections with netstat -au:

List all connections in LISTEN mode with netstat -l:

List all TCP connections in LISTEN mode with netstat -lt:

List all UDP connections in LISTEN mode with netstat -lu:

List all active connections with netstat -lx:

Show statistics by protocol with netstat -s:

Show statistics only of TCP protocol with netstat -st:

Show statistics of UDP protocol with netstat -su:

List connection with program name and process id with netstat -tp:

Show routing table with netstat -r (same information you can get from route):

Show interface status and statistics with netstat -i:

Show interfaces information with netstat -ie (same information you can get from old ifconfig):

Show multicast group membership information with netstat -g:

Print netstat information continuously every few seconds to output stream with netstat -c:

List programs which listening to ports with netstat -ap, for example find ssh connections:

About pavel