ss

From RaySoft

ss is one another utility to investigate sockets. Functionally it is not better than netstat combined with some perl/awk scripts and though it is surely faster it is not enough to make it much better. :-) So, stop reading this now and do not waste your time. Well, certainly, it proposes some functionality, which current netstat is still not able to do, but surely will soon.[1]

Documentation

Syntax

ss [PARAMETER ...] [FILTER]

Parameters

-4, --ipv4
Display only IP version 4 sockets (alias for -f inet).
-6, --ipv6
Display only IP version 6 sockets (alias for -f inet6).
-a, --all
Display all sockets.
-l, --listening
Display listening sockets.
-s, --summary
Print summary statistics. This option does not parse socket lists obtaining summary from various sources. It is useful when amount of sockets is so huge that parsing /proc/net/tcp is painful.
-t, --tcp
Display only TCP sockets.
-u, --udp
Display only UDP sockets.

References