netstat Command in Linux

netstat command stands for Network Statistic. It’s so many helpful command. Because it can help to setup network environment.

netstat command shows information about different interface statistics including open sockets, routing tables and connection information. This tool is one of the important tool and to monitor your network.

So the example of netstat :

$ netstat  

See your terminal after running the command and it is a list of open sockets.

netstat -p

This command displays programs associated with open socket.

netstat -s

It displays detailed statistics for all ports.

netstat -r

This command displays routing table information.

So Please try it on your terminal with your Linux desktop environment.

Leave a Reply