Socket Statistics – SS

ss stands for socket statistics. This displays information that are similar to netstat command.

To display all listening sockets, do ss -l as shown below.

$ ss -l
Recv-Q Send-Q Local Address:Port Peer Address:Port
0 100 :::8009 :::*
0 128 :::sunrpc :::*
0 100 :::webcache :::*
0 128 :::ssh :::*
0 64 :::nrpe :::*

The following displays only the established connection.

$ ss -o state established
Recv-Q Send-Q Local Address:Port Peer Address:Port
0 52 192.168.1.10:ssh 192.168.2.11:55969 timer:(on,414ms,0)

The following displays socket summary statistics. This displays the total number of sockets broken down by the type.

$ ss -s
Total: 688 (kernel 721)
TCP: 16 (estab 1, closed 0, orphaned 0, synrecv 0, timewait 0/0), ports 11

Transport Total IP IPv6
* 721 - -
RAW 0 0 0
UDP 13 10 3
TCP 16 7 9
INET 29 17 12
FRAG 0 0 0

  • 100 Users Found This Useful
Was this answer helpful?

Related Articles

UNIX / Linux: 7 Practical PS Command Examples for Process Monitoring

Process is a running instance of a program. Linux is a multitasking operating system, which...

Unix Bash Alias Tutorial – Handle Alias Command Like Jennifer Garner

An alias command is simple string substitution of one text for another, when it is used as the...

tree and pstree: Visualize Unix Processes and Directories in Hierarchical Structure

Using the traditional ps command, you have to manually look at the PID and Parent PID to...

Free Command

Free command displays information about the physical (RAM) and swap memory of your system. In...

TOP Command

In this article, let us review 15 examples forLinux top command that will be helpful for both...