GNU/Linux Command – NETSTAT

netstat — Display the Network subsystem informations.

Summary:

Netstat prints information about the Linux networking subsystem, like network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. It is very useful monitoring tool.

Examples:
$ netstat -- List all open sockets. $ netstat -c -- Run continuously and show output for every 1 sec. $ netstat 6 -- Run continuously and show output for every 6 secs. $ netstat -r -- Display the Kernel routing table. $ netstat -i -- List the interfaces table. $ netstat -s -- Display summary statistics for each protocol. $ netstat -n -- Show the host info in IP address. $ netstat -p -- Show the program to which each socket belongs. $ netstat -l -- Show only listening sockets. $ netstat -a -- Show all sockets. $ netstat -t -- Show only TCP connections. $ netstat -u -- Show only UDP connections. To get more useful output, try this commands as a Superuser.
Read: man netstat

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: