]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - man/man8/ss.8
b309df2da0ba22a00dba23a940646b53fc25bd29
[lisovros/iproute2_canprio.git] / man / man8 / ss.8
1 .TH SS 8
2 .SH NAME
3 ss \- another utility to investigate sockets
4 .SH SYNOPSIS
5 .B ss
6 .RI [ options ] " [ FILTER ]"
7 .SH DESCRIPTION
8 .B ss
9 is used to dump socket statistics. It allows showing information similar
10 to
11 .IR netstat .
12 It can display more TCP and state informations than other tools.
13
14 .SH OPTIONS
15 When no option is used ss displays a list of 
16 open non-listening TCP sockets that have established connection.
17 .TP
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.
21 .TP
22 .B \-h, \-\-help
23 Show summary of options.
24 .TP
25 .B \-V, \-\-version
26 Output version information.
27 .TP
28 .B \-n, \-\-numeric
29 Do not try to resolve service names.
30 .TP
31 .B \-r, \-\-resolve
32 Try to resolve numeric address/ports.
33 .TP
34 .B \-a, \-\-all
35 Display both listening and non-listening (for TCP this means established connections) sockets.
36 .TP
37 .B \-l, \-\-listening
38 Display only listening sockets (these are omitted by default).
39 .TP
40 .B \-o, \-\-options
41 Show timer information.
42 .TP
43 .B \-e, \-\-extended
44 Show detailed socket information
45 .TP
46 .B \-m, \-\-memory
47 Show socket memory usage.
48 .TP
49 .B \-p, \-\-processes
50 Show process using socket.
51 .TP
52 .B \-i, \-\-info
53 Show internal TCP information.
54 .TP
55 .B \-s, \-\-summary
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.
59 .TP
60 .B \-4, \-\-ipv4
61 Display only IP version 4 sockets (alias for -f inet).
62 .TP
63 .B \-6, \-\-ipv6
64 Display only IP version 6 sockets (alias for -f inet6).
65 .TP
66 .B \-0, \-\-packet
67 Display PACKET sockets (alias for -f link).
68 .TP
69 .B \-t, \-\-tcp
70 Display TCP sockets.
71 .TP
72 .B \-u, \-\-udp
73 Display UDP sockets.
74 .TP
75 .B \-d, \-\-dccp
76 Display DCCP sockets.
77 .TP
78 .B \-w, \-\-raw
79 Display RAW sockets.
80 .TP
81 .B \-x, \-\-unix
82 Display Unix domain sockets (alias for -f unix).
83 .TP
84 .B \-f FAMILY, \-\-family=FAMILY
85 Display sockets of type FAMILY.
86 Currently the following families are supported: unix, inet, inet6, link, netlink.
87 .TP
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.
92 .TP
93 .B \-D FILE
94 Do not display anything, just dump raw information about TCP sockets to FILE after applying filters. If FILE is - stdout is used.
95 .TP
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.
99 .TP
100 .B FILTER := [ state TCP-STATE ] [ EXPRESSION ]
101 Please take a look at the official documentation (Debian package iproute-doc) for details regarding filters.
102 .SH USAGE EXAMPLES
103 .TP
104 .B ss -t -a
105 Display all TCP sockets.
106 .TP
107 .B ss -u -a
108 Display all UDP sockets.
109 .TP
110 .B ss -o state established '( dport = :ssh or sport = :ssh )'
111 Display all established ssh connections.
112 .TP
113 .B ss -x src /tmp/.X11-unix/*
114 Find all local processes connected to X server.
115 .TP
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.
118 .SH SEE ALSO
119 .BR ip (8),
120 .BR /usr/share/doc/iproute-doc/ss.html " (package iprouteĀ­doc)"
121 .SH AUTHOR
122 .I ss 
123 was written by Alexey Kuznetosv, <kuznet@ms2.inr.ac.ru>.
124 .PP
125 This manual page was written by Michael Prokop <mika@grml.org>
126 for the Debian project (but may be used by others).