ss – the alternative to netstat

By | 2012/08/16

An alternative to netstat is the utility ss. ss dumps socket statistics in a clear and more simple view as compared to netstat. Let’s check it out!


With no options specified, ss displays a list of TCP sockets with established connections. This is useful on a server to see what clients are connected.

01-ss

The option tack l outputs current listening sockets. Much easier than netstat!

02-ss

Tack t shows current TCP sockets; tack u for UDP sockets:

03-ss

Tack s shows a socket stat summary:

04-ss

Tack a shows all:

05-ss

Cool!