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