Skip to main content

Posts

Showing posts from August, 2018

SS command in Linux - more powerful than netstat

Today i want to share a command ss (Socket statistics) to investigate network and debug tcp connections. ss  is  used to dump socket statistics. It allows showing information similar to netstat.  It can display more TCP and state information than other tools. It is present in most of our Linux machines.
ss commands has lot of options. To get all options: ss -help
Few commands and outputs worth trying are as below: ss -t ->stands for tcp. Gives information about tcp connections that are available on the system #ss -t State       Recv-Q Send-Q                                Local Address:Port                                                 Peer Address:Port ESTAB       0      352                                   172.19.79.104:ssh                                                172.29.155.168:64045 ESTAB       0      0                                     172.19.79.104:54550                                               172.19.79.105:pcsync-https ESTAB       0      0               …