3 ss \- another utility to investigate sockets
6 .RI [ options ] " [ FILTER ]"
9 is used to dump socket statistics. It allows showing information similar
12 It can display more TCP and state informations than other tools.
15 When no option is used ss displays a list of
16 open non-listening TCP sockets that have established connection.
18 These programs follow the usual GNU command line syntax, with long
19 options starting with two dashes (`-').
20 A summary of options is included below.
23 Show summary of options.
26 Output version information.
29 Do not try to resolve service names.
32 Try to resolve numeric address/ports.
35 Display both listening and non-listening (for TCP this means established connections) sockets.
38 Display only listening sockets (these are omitted by default).
41 Show timer information.
44 Show detailed socket information
47 Show socket memory usage.
50 Show process using socket.
53 Show internal TCP information.
56 Print summary statistics. This option does not parse socket lists obtaining
57 summary from various sources. It is useful when amount of sockets is so huge
58 that parsing /proc/net/tcp is painful.
61 Display only IP version 4 sockets (alias for -f inet).
64 Display only IP version 6 sockets (alias for -f inet6).
67 Display PACKET sockets (alias for -f link).
82 Display Unix domain sockets (alias for -f unix).
84 .B \-f FAMILY, \-\-family=FAMILY
85 Display sockets of type FAMILY.
86 Currently the following families are supported: unix, inet, inet6, link, netlink.
88 .B \-A QUERY, \-\-query=QUERY
89 List of socket tables to dump, separated by commas. The following identifiers
90 are understood: all, inet, tcp, udp, raw, unix, packet, netlink, unix_dgram,
91 unix_stream, packet_raw, packet_dgram.
94 Do not display anything, just dump raw information about TCP sockets to FILE after applying filters. If FILE is - stdout is used.
96 .B \-F FILE, \-\-filter=FILE
97 Read filter information from FILE.
98 Each line of FILE is interpreted like single command line option. If FILE is - stdin is used.
100 .B FILTER := [ state TCP-STATE ] [ EXPRESSION ]
101 Please take a look at the official documentation (Debian package iproute-doc) for details regarding filters.
105 Display all TCP sockets.
108 Display all UDP sockets.
110 .B ss -o state established '( dport = :ssh or sport = :ssh )'
111 Display all established ssh connections.
113 .B ss -x src /tmp/.X11-unix/*
114 Find all local processes connected to X server.
116 .B ss -o state fin-wait-1 '( sport = :http or sport = :https )' dst 193.233.7/24
117 List all the tcp sockets in state FIN-WAIT-1 for our apache to network 193.233.7/24 and look at their timers.
120 .BR /usr/share/doc/iproute-doc/ss.html " (package iprouteĀdoc)"
123 was written by Alexey Kuznetosv, <kuznet@ms2.inr.ac.ru>.
125 This manual page was written by Michael Prokop <mika@grml.org>
126 for the Debian project (but may be used by others).