Another Linux utility to investigate sockets

SS is another Linux utility that can be used to dump socket statistics. Written by Alexey Kuznetsov it allows showing information similar to netstat. According to man ss it can display more TCP information than other tools. Here it an example of it’s usage:

viper@viper-laptop:~$ ss -t -n
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 192.168.0.7:58636 62.64.83.230:2233
ESTAB 0 0 192.168.0.7:48629 209.85.133.109:995
ESTAB 0 0 192.168.0.7:51581 208.66.64.132:80
ESTAB 0 0 192.168.0.7:36079 62.64.83.230:904
ESTAB 0 0 192.168.0.7:36078 62.64.83.230:904
CLOSE-WAIT 0 0 192.168.0.7:44531 91.189.89.8:80

Sockets summary statistics:

viper@viper-laptop:~$ ss -s
Total: 539 (kernel 566)
TCP: 13 (estab 5, closed 0, orphaned 0, synrecv 0, timewait 0/0), ports 18

This utility is available by default in many Linux distributions like Ubuntu, Debian or Fedora.

SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

1 thought on “Another Linux utility to investigate sockets”

Leave a Reply

Your email address will not be published. Required fields are marked *