How do I display tcp sockets using the network command ss?



  • Also see the man page: ss(8) - another utility to investigate sockets

    This will display all established, closed, orphaned and waiting TCP sockets.

    $  ss -s
    Total: 1085
    TCP:   11 (estab 1, closed 1, orphaned 0, timewait 0)
    
    Transport Total     IP        IPv6
    RAW       1         0         1
    UDP       11        7         4
    TCP       10        6         4
    INET      22        13        9
    FRAG      0         0         0
    
           -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.
    

Log in to reply
 

© Lightnetics 2024