Next: STATE-FILTER
Up: Command arguments
Previous: Command arguments
OPTIONS is list of single letter options, using common unix
conventions.
- -h - show help page
- -? - the same, of course
- -v, -V - print version of ss and exit
- -s - 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.
- -D FILE - do not display anything, just dump raw information
about TCP sockets to FILE after applying filters. If FILE is -
stdout is used.
- -F FILE - read continuation of filter from FILE.
Each line of FILE is interpreted like single command line option.
If FILE is - stdin is used.
- -r - try to resolve numeric address/ports
- -n - do not try to resolve ports
- -o - show some optional information, f.e. TCP timers
- -i - show some infomration specific to TCP (RTO, congestion
window, slow start threshould etc.)
- -e - show even more optional information
- -m - show extended information on memory used by the socket.
It is available only with tcp_diag enabled.
- -p - show list of processes owning the socket
- -f FAMILY - default address family used for parsing addresses.
Also this option limits listing to sockets supporting
given address family. Currently the following families
are supported: unix, inet, inet6, link,
netlink.
- -4 - alias for -f inet
- -6 - alias for -f inet6
- -0 - alias for -f link
- -A LIST-OF-TABLES - list of socket tables to dump, separated
by commas. The following identifiers are understood:
all, inet, tcp, udp, raw,
unix, packet, netlink, unix_dgram,
unix_stream, packet_raw, packet_dgram.
- -x - alias for -A unix
- -t - alias for -A tcp
- -u - alias for -A udp
- -w - alias for -A raw
- -a - show sockets of all the states. By default sockets
in states LISTEN, TIME-WAIT, SYN_RECV
and CLOSE are skipped.
- -l - show only sockets in state LISTEN
Next: STATE-FILTER
Up: Command arguments
Previous: Command arguments