Linux netstat

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Linux netstat

The netstat command stands for Network Statistic. It displays information about different interface statistics including open sockets, routing tables and connection information.

Syntax:

netstat 

Linux netstat1

Look at the above snapshot, it is a list of open sockets.


netstat -p

This command displays programs associated with open socket.

Linux netstat2


netstat -s

It displays detiled statistics for all ports.

Linux netstat3


netstat -r

This command displays routing table information.

Linux netstat4