{
    "mode": "man",
    "parameter": "ss",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/ss/8/json",
    "generated": "2026-09-13T03:02:34Z",
    "synopsis": "ss [options] [ FILTER ]",
    "sections": {
        "NAME": {
            "content": "ss - another utility to investigate sockets\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ss [options] [ FILTER ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ss  is  used to dump socket statistics. It allows showing information similar to netstat.  It\ncan display more TCP and state information than other tools.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "When no option is used ss displays a list of open non-listening sockets  (e.g.  TCP/UNIX/UDP)\nthat have established connection.\n",
            "subsections": [
                {
                    "name": "-h, --help",
                    "content": "Show summary of options.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V, --version",
                    "content": "Output version information.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-H, --no-header",
                    "content": "Suppress header line.\n",
                    "flag": "-H",
                    "long": "--no-header"
                },
                {
                    "name": "-O, --oneline",
                    "content": "Print each socket's data on a single line.\n",
                    "flag": "-O",
                    "long": "--oneline"
                },
                {
                    "name": "-n, --numeric",
                    "content": "Do  not  try  to resolve service names. Show exact bandwidth values, instead of human-\nreadable.\n",
                    "flag": "-n",
                    "long": "--numeric"
                },
                {
                    "name": "-r, --resolve",
                    "content": "Try to resolve numeric address/ports.\n",
                    "flag": "-r",
                    "long": "--resolve"
                },
                {
                    "name": "-a, --all",
                    "content": "Display both listening and non-listening (for TCP this means established  connections)\nsockets.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-l, --listening",
                    "content": "Display only listening sockets (these are omitted by default).\n",
                    "flag": "-l",
                    "long": "--listening"
                },
                {
                    "name": "-o, --options",
                    "content": "Show timer information. For TCP protocol, the output format is:\n\ntimer:(<timername>,<expiretime>,<retrans>)\n\n<timername>\nthe name of the timer, there are five kind of timer names:\n\non  : means one of these timers: TCP retrans timer, TCP early retrans timer and\ntail loss probe timer\n\nkeepalive: tcp keep alive timer\n\ntimewait: timewait stage timer\n\npersist: zero window probe timer\n\nunknown: none of the above timers\n\n<expiretime>\nhow long time the timer will expire\n\n<retrans>\nhow many times the retransmission occurred\n",
                    "flag": "-o",
                    "long": "--options"
                },
                {
                    "name": "-e, --extended",
                    "content": "Show detailed socket information. The output format is:\n\nuid:<uidnumber> ino:<inodenumber> sk:<cookie>\n\n<uidnumber>\nthe user id the socket belongs to\n\n<inodenumber>\nthe socket's inode number in VFS\n\n<cookie>\nan uuid of the socket\n",
                    "flag": "-e",
                    "long": "--extended"
                },
                {
                    "name": "-m, --memory",
                    "content": "Show socket memory usage. The output format is:\n\nskmem:(r<rmemalloc>,rb<rcvbuf>,t<wmemalloc>,tb<sndbuf>,\nf<fwdalloc>,w<wmemqueued>,o<optmem>,\nbl<backlog>,d<sockdrop>)\n\n<rmemalloc>\nthe memory allocated for receiving packet\n\n<rcvbuf>\nthe total memory can be allocated for receiving packet\n\n<wmemalloc>\nthe memory used for sending packet (which has been sent to layer 3)\n\n<sndbuf>\nthe total memory can be allocated for sending packet\n\n<fwdalloc>\nthe memory allocated by the socket as cache, but not used for receiving/sending\npacket yet. If need memory to send/receive packet, the  memory  in  this  cache\nwill be used before allocate additional memory.\n\n<wmemqueued>\nThe memory allocated for sending packet (which has not been sent to layer 3)\n\n<optmem>\nThe memory used for storing socket option, e.g., the key for TCP MD5 signature\n\n<backlog>\nThe  memory used for the sk backlog queue. On a process context, if the process\nis receiving packet, and a new packet is received, it will be put into  the  sk\nbacklog queue, so it can be received by the process immediately\n\n<sockdrop>\nthe number of packets dropped before they are de-multiplexed into the socket\n",
                    "flag": "-m",
                    "long": "--memory"
                },
                {
                    "name": "-p, --processes",
                    "content": "Show process using socket.\n",
                    "flag": "-p",
                    "long": "--processes"
                },
                {
                    "name": "-T, --threads",
                    "content": "Show thread using socket. Implies -p.  -p.\n",
                    "flag": "-T",
                    "long": "--threads"
                },
                {
                    "name": "-i, --info",
                    "content": "Show internal TCP information. Below fields may appear:\n\nts     show string \"ts\" if the timestamp option is set\n\nsack   show string \"sack\" if the sack option is set\n\necn    show string \"ecn\" if the explicit congestion notification option is set\n\necnseen\nshow string \"ecnseen\" if the saw ecn flag is found in received packets\n\nfastopen\nshow string \"fastopen\" if the fastopen option is set\n\ncongalg\nthe congestion algorithm name, the default congestion algorithm is \"cubic\"\n\nwscale:<sndwscale>:<rcvwscale>\nif  window scale option is used, this field shows the send scale factor and re‐\nceive scale factor\n\nrto:<icskrto>\ntcp re-transmission timeout value, the unit is millisecond\n\nbackoff:<icskbackoff>\nused for exponential backoff re-transmission, the actual re-transmission  time‐\nout value is icskrto << icskbackoff\n\nrtt:<rtt>/<rttvar>\nrtt  is the average round trip time, rttvar is the mean deviation of rtt, their\nunits are millisecond\n\nato:<ato>\nack timeout, unit is millisecond, used for delay ack mode\n\nmss:<mss>\nmax segment size\n\ncwnd:<cwnd>\ncongestion window size\n\npmtu:<pmtu>\npath MTU value\n\nssthresh:<ssthresh>\ntcp congestion window slow start threshold\n\nbytesacked:<bytesacked>\nbytes acked\n\nbytesreceived:<bytesreceived>\nbytes received\n\nsegsout:<segsout>\nsegments sent out\n\nsegsin:<segsin>\nsegments received\n\nsend <sendbps>bps\negress bps\n\nlastsnd:<lastsnd>\nhow long time since the last packet sent, the unit is millisecond\n\nlastrcv:<lastrcv>\nhow long time since the last packet received, the unit is millisecond\n\nlastack:<lastack>\nhow long time since the last ack received, the unit is millisecond\n\npacingrate <pacingrate>bps/<maxpacingrate>bps\nthe pacing rate and max pacing rate\n\nrcvspace:<rcvspace>\na helper variable for TCP internal auto tuning socket receive buffer\n\ntcp-ulp-mptcp flags:[MmBbJjecv] token:<remtoken(remid)/loctoken(locid)> seq:<sn>\nsfseq:<ssn> ssnoff:<off> maplen:<maplen>\nMPTCP subflow information\n\n--tos  Show ToS and priority information. Below fields may appear:\n\ntos    IPv4 Type-of-Service byte\n\ntclass IPv6 Traffic Class byte\n\nclassid\nClass id set by netcls cgroup. If class is zero this  shows  priority  set  by\nSOPRIORITY.\n",
                    "flag": "-i",
                    "long": "--info"
                },
                {
                    "name": "--cgroup",
                    "content": "Show cgroup information. Below fields may appear:\n\ncgroup Cgroup v2 pathname. This pathname is relative to the mount point of the hierar‐\nchy.\n",
                    "long": "--cgroup"
                },
                {
                    "name": "--tipcinfo",
                    "content": "Show internal tipc socket information.\n\n-K, --kill\nAttempts  to forcibly close sockets. This option displays sockets that are suc‐\ncessfully closed and silently skips sockets that the kernel  does  not  support\nclosing. It supports IPv4 and IPv6 sockets only.\n\n-s, --summary\nPrint  summary  statistics.  This  option does not parse socket lists obtaining\nsummary from various sources. It is useful when amount of sockets  is  so  huge\nthat parsing /proc/net/tcp is painful.\n\n-E, --events\nContinually display sockets as they are destroyed\n\n-Z, --context\nAs  the  -p option but also shows process security context. If the -T option is\nused, also shows thread security context.\n\nFor netlink(7) sockets the initiating process context is displayed as follows:\n\n1.  If valid pid show the process context.\n\n2.  If destination is kernel (pid = 0) show kernel initial context.\n\n3.  If a unique identifier has been allocated by the kernel  or  netlink\nuser,  show  context  as \"unavailable\". This will generally indicate\nthat a process has more than one netlink socket active.\n\n-z, --contexts\nAs the -Z option but also shows the socket context. The socket context is taken\nfrom the associated inode and is not the actual socket context held by the ker‐\nnel. Sockets are typically labeled with the context of  the  creating  process,\nhowever the context shown will reflect any policy role, type and/or range tran‐\nsition rules applied, and is therefore a useful reference.\n\n-N NSNAME, --net=NSNAME\nSwitch to the specified network namespace name.\n\n-b, --bpf\nShow  socket  classic BPF filters (only administrators are allowed to get these\ninformation).\n\n-4, --ipv4\nDisplay only IP version 4 sockets (alias for -f inet).\n\n-6, --ipv6\nDisplay only IP version 6 sockets (alias for -f inet6).\n\n-0, --packet\nDisplay PACKET sockets (alias for -f link).\n\n-t, --tcp\nDisplay TCP sockets.\n\n-u, --udp\nDisplay UDP sockets.\n\n-d, --dccp\nDisplay DCCP sockets.\n\n-w, --raw\nDisplay RAW sockets.\n\n-x, --unix\nDisplay Unix domain sockets (alias for -f unix).\n\n-S, --sctp\nDisplay SCTP sockets.\n\n--tipc Display tipc sockets (alias for -f tipc).\n\n--vsock\nDisplay vsock sockets (alias for -f vsock).\n\n--xdp  Display XDP sockets (alias for -f xdp).\n\n-M, --mptcp\nDisplay MPTCP sockets.\n\n--inet-sockopt\nDisplay inet socket options.\n\n-f FAMILY, --family=FAMILY\nDisplay sockets of type FAMILY.  Currently  the  following  families  are  sup‐\nported: unix, inet, inet6, link, netlink, vsock, tipc, xdp.\n\n-A QUERY, --query=QUERY, --socket=QUERY\nList  of  socket tables to dump, separated by commas. The following identifiers\nare understood: all, inet, tcp, udp, raw, unix,  packet,  netlink,  unixdgram,\nunixstream,   unixseqpacket,  packetraw,  packetdgram,  dccp,  sctp,  tipc,\nvsockstream, vsockdgram, xdp, mptcp. Any item in the list may  optionally  be\nprefixed  by  an  exclamation mark (!)  to exclude that socket table from being\ndumped.\n\n-D FILE, --diag=FILE\nDo not display anything, just dump raw information about TCP  sockets  to  FILE\nafter applying filters. If FILE is - stdout is used.\n\n-F FILE, --filter=FILE\nRead  filter information from FILE.  Each line of FILE is interpreted like sin‐\ngle command line option. If FILE is - stdin is used.\n\nFILTER := [ state STATE-FILTER ] [ EXPRESSION ]\nPlease take a look at the official documentation for details regarding filters.\n\n",
                    "long": "--tipcinfo"
                }
            ]
        },
        "STATE-FILTER": {
            "content": "STATE-FILTER allows one to construct arbitrary set of states to match. Its syntax is sequence\nof keywords state and exclude followed by identifier of state.\n\nAvailable identifiers are:\n\nAll standard TCP states:  established,  syn-sent,  syn-recv,  fin-wait-1,  fin-wait-2,\ntime-wait, closed, close-wait, last-ack, listening and closing.\n\nall - for all the states\n\nconnected - all the states except for listening and closed\n\nsynchronized - all the connected states except for syn-sent\n\nbucket - states, which are maintained as minisockets, i.e.  time-wait and syn-recv\n\nbig - opposite to bucket\n\n",
            "subsections": []
        },
        "EXPRESSION": {
            "content": "EXPRESSION  allows  filtering based on specific criteria.  EXPRESSION consists of a series of\npredicates combined by boolean operators. The  possible  operators  in  increasing  order  of\nprecedence  are  or (or | or ||), and (or & or &&), and not (or !). If no operator is between\nconsecutive predicates, an implicit and operator is assumed. Subexpressions  can  be  grouped\nwith \"(\" and \")\".\n\nThe following predicates are supported:\n\n",
            "subsections": [
                {
                    "name": "{dst|src} [=] HOST",
                    "content": "Test if the destination or source matches HOST. See HOST SYNTAX for details.\n"
                },
                {
                    "name": "{dport|sport} [OP] [FAMILY:]:PORT",
                    "content": "Compare the destination or source port to PORT. OP can be any of \"<\", \"<=\", \"=\", \"!=\",\n\">=\"  and  \">\". Following normal arithmetic rules. FAMILY and PORT are as described in\nHOST SYNTAX below.\n"
                },
                {
                    "name": "dev [=|!=] DEVICE",
                    "content": "Match based on the device the connection uses. DEVICE can either be a device  name  or\nthe index of the interface.\n"
                },
                {
                    "name": "fwmark [=|!=] MASK",
                    "content": "Matches  based  on  the fwmark value for the connection. This can either be a specific\nmark value or a mark value followed by a \"/\" and a bitmask of which bits to use in the\ncomparison. For example \"fwmark = 0x01/0x03\" would match if the two least  significant\nbits of the fwmark were 0x01.\n"
                },
                {
                    "name": "cgroup [=|!=] PATH",
                    "content": "Match if the connection is part of a cgroup at the given path.\n"
                },
                {
                    "name": "autobound",
                    "content": "Match  if  the  port or path of the source address was automatically allocated (rather\nthan explicitly specified).\n\nMost operators have aliases. If no operator is supplied \"=\" is assumed.  Each of the  follow‐\ning groups of operators are all equivalent:\n\n• = == eq\n\n• != ne neq\n\n• > gt\n\n• < lt\n\n• >= ge geq\n\n• <= le leq\n\n• ! not\n\n• | || or\n\n• & && and\n"
                }
            ]
        },
        "HOST SYNTAX": {
            "content": "The general host syntax is [FAMILY:]ADDRESS[:PORT].\n\nFAMILY  must  be  one of the families supported by the -f option. If not given it defaults to\nthe family given with the -f option, and if that is also missing, will assume either inet  or\ninet6.  Note  that all host conditions in the expression should either all be the same family\nor be only inet and inet6. If there is some other mixture of families, the results will prob‐\nably be unexpected.\n\nThe form of ADDRESS and PORT depends on the family used. \"*\" can be used as  a  wildcard  for\neither the address or port. The details for each family are as follows:\n\nunix   ADDRESS  is  a  glob  pattern (see fnmatch(3)) that will be matched case-insensitively\nagainst the unix socket's address. Both path and abstract names  are  supported.  Unix\naddresses do not support a port, and \"*\" cannot be used as a wildcard.\n\nlink   ADDRESS  is the case-insensitive name of an Ethernet protocol to match. PORT is either\na device name or a device index for the desired link device, as seen in the output  of\nip link.\n",
            "subsections": [
                {
                    "name": "netlink",
                    "content": "ADDRESS   is   a   descriptor  of  the  netlink  family.  Possible  values  come  from\n/etc/iproute2/nlprotos. PORT is the port id of the socket, which is usually the  same\nas the owning process id. The value \"kernel\" can be used to represent the kernel (port\nid of 0).\n\nvsock  ADDRESS is an integer representing the CID address, and PORT is the port.\n\ninet and inet6\nADDRESS  is  an ip address (either v4 or v6 depending on the family) or a DNS hostname\nthat resolves to an ip address of the required version. An ipv6 address  must  be  en‐\nclosed in \"[\" and \"]\" to disambiguate the port separator. The address may additionally\nhave  a prefix length given in CIDR notation (a slash followed by the prefix length in\nbits). PORT is either the numerical socket port, or the service name for the  port  to\nmatch.\n\n"
                }
            ]
        },
        "USAGE EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "ss -t -a",
                    "content": "Display all TCP sockets.\n"
                },
                {
                    "name": "ss -t -a -Z",
                    "content": "Display all TCP sockets with process SELinux security contexts.\n"
                },
                {
                    "name": "ss -u -a",
                    "content": "Display all UDP sockets.\n"
                },
                {
                    "name": "ss -o state established '( dport = :ssh or sport = :ssh )'",
                    "content": "Display all established ssh connections.\n\nss -x src /tmp/.X11-unix/*\nFind all local processes connected to X server.\n"
                },
                {
                    "name": "ss -o state fin-wait-1 '( sport = :http or sport = :https )' dst 193.233.7/24",
                    "content": "List  all  the  tcp sockets in state FIN-WAIT-1 for our apache to network 193.233.7/24\nand look at their timers.\n"
                },
                {
                    "name": "ss -a -A 'all,!tcp'",
                    "content": "List sockets in all states from all socket tables but TCP.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "ip(8),\nRFC 793 - https://tools.ietf.org/rfc/rfc793.txt (TCP states)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "ss was written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>.\n\nThis manual page was written by Michael Prokop <mika@grml.org> for the  Debian  project  (but\nmay be used by others).\n\nSS(8)",
            "subsections": []
        }
    },
    "summary": "ss - another utility to investigate sockets",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show summary of options."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Output version information."
        },
        {
            "flag": "-H",
            "long": "--no-header",
            "arg": null,
            "description": "Suppress header line."
        },
        {
            "flag": "-O",
            "long": "--oneline",
            "arg": null,
            "description": "Print each socket's data on a single line."
        },
        {
            "flag": "-n",
            "long": "--numeric",
            "arg": null,
            "description": "Do not try to resolve service names. Show exact bandwidth values, instead of human- readable."
        },
        {
            "flag": "-r",
            "long": "--resolve",
            "arg": null,
            "description": "Try to resolve numeric address/ports."
        },
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "Display both listening and non-listening (for TCP this means established connections) sockets."
        },
        {
            "flag": "-l",
            "long": "--listening",
            "arg": null,
            "description": "Display only listening sockets (these are omitted by default)."
        },
        {
            "flag": "-o",
            "long": "--options",
            "arg": null,
            "description": "Show timer information. For TCP protocol, the output format is: timer:(<timername>,<expiretime>,<retrans>) <timername> the name of the timer, there are five kind of timer names: on : means one of these timers: TCP retrans timer, TCP early retrans timer and tail loss probe timer keepalive: tcp keep alive timer timewait: timewait stage timer persist: zero window probe timer unknown: none of the above timers <expiretime> how long time the timer will expire <retrans> how many times the retransmission occurred"
        },
        {
            "flag": "-e",
            "long": "--extended",
            "arg": null,
            "description": "Show detailed socket information. The output format is: uid:<uidnumber> ino:<inodenumber> sk:<cookie> <uidnumber> the user id the socket belongs to <inodenumber> the socket's inode number in VFS <cookie> an uuid of the socket"
        },
        {
            "flag": "-m",
            "long": "--memory",
            "arg": null,
            "description": "Show socket memory usage. The output format is: skmem:(r<rmemalloc>,rb<rcvbuf>,t<wmemalloc>,tb<sndbuf>, f<fwdalloc>,w<wmemqueued>,o<optmem>, bl<backlog>,d<sockdrop>) <rmemalloc> the memory allocated for receiving packet <rcvbuf> the total memory can be allocated for receiving packet <wmemalloc> the memory used for sending packet (which has been sent to layer 3) <sndbuf> the total memory can be allocated for sending packet <fwdalloc> the memory allocated by the socket as cache, but not used for receiving/sending packet yet. If need memory to send/receive packet, the memory in this cache will be used before allocate additional memory. <wmemqueued> The memory allocated for sending packet (which has not been sent to layer 3) <optmem> The memory used for storing socket option, e.g., the key for TCP MD5 signature <backlog> The memory used for the sk backlog queue. On a process context, if the process is receiving packet, and a new packet is received, it will be put into the sk backlog queue, so it can be received by the process immediately <sockdrop> the number of packets dropped before they are de-multiplexed into the socket"
        },
        {
            "flag": "-p",
            "long": "--processes",
            "arg": null,
            "description": "Show process using socket."
        },
        {
            "flag": "-T",
            "long": "--threads",
            "arg": null,
            "description": "Show thread using socket. Implies -p. -p."
        },
        {
            "flag": "-i",
            "long": "--info",
            "arg": null,
            "description": "Show internal TCP information. Below fields may appear: ts show string \"ts\" if the timestamp option is set sack show string \"sack\" if the sack option is set ecn show string \"ecn\" if the explicit congestion notification option is set ecnseen show string \"ecnseen\" if the saw ecn flag is found in received packets fastopen show string \"fastopen\" if the fastopen option is set congalg the congestion algorithm name, the default congestion algorithm is \"cubic\" wscale:<sndwscale>:<rcvwscale> if window scale option is used, this field shows the send scale factor and re‐ ceive scale factor rto:<icskrto> tcp re-transmission timeout value, the unit is millisecond backoff:<icskbackoff> used for exponential backoff re-transmission, the actual re-transmission time‐ out value is icskrto << icskbackoff rtt:<rtt>/<rttvar> rtt is the average round trip time, rttvar is the mean deviation of rtt, their units are millisecond ato:<ato> ack timeout, unit is millisecond, used for delay ack mode mss:<mss> max segment size cwnd:<cwnd> congestion window size pmtu:<pmtu> path MTU value ssthresh:<ssthresh> tcp congestion window slow start threshold bytesacked:<bytesacked> bytes acked bytesreceived:<bytesreceived> bytes received segsout:<segsout> segments sent out segsin:<segsin> segments received send <sendbps>bps egress bps lastsnd:<lastsnd> how long time since the last packet sent, the unit is millisecond lastrcv:<lastrcv> how long time since the last packet received, the unit is millisecond lastack:<lastack> how long time since the last ack received, the unit is millisecond pacingrate <pacingrate>bps/<maxpacingrate>bps the pacing rate and max pacing rate rcvspace:<rcvspace> a helper variable for TCP internal auto tuning socket receive buffer tcp-ulp-mptcp flags:[MmBbJjecv] token:<remtoken(remid)/loctoken(locid)> seq:<sn> sfseq:<ssn> ssnoff:<off> maplen:<maplen> MPTCP subflow information --tos Show ToS and priority information. Below fields may appear: tos IPv4 Type-of-Service byte tclass IPv6 Traffic Class byte classid Class id set by netcls cgroup. If class is zero this shows priority set by SOPRIORITY."
        },
        {
            "flag": "",
            "long": "--cgroup",
            "arg": null,
            "description": "Show cgroup information. Below fields may appear: cgroup Cgroup v2 pathname. This pathname is relative to the mount point of the hierar‐ chy."
        },
        {
            "flag": "",
            "long": "--tipcinfo",
            "arg": null,
            "description": "Show internal tipc socket information. -K, --kill Attempts to forcibly close sockets. This option displays sockets that are suc‐ cessfully closed and silently skips sockets that the kernel does not support closing. It supports IPv4 and IPv6 sockets only. -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. -E, --events Continually display sockets as they are destroyed -Z, --context As the -p option but also shows process security context. If the -T option is used, also shows thread security context. For netlink(7) sockets the initiating process context is displayed as follows: 1. If valid pid show the process context. 2. If destination is kernel (pid = 0) show kernel initial context. 3. If a unique identifier has been allocated by the kernel or netlink user, show context as \"unavailable\". This will generally indicate that a process has more than one netlink socket active. -z, --contexts As the -Z option but also shows the socket context. The socket context is taken from the associated inode and is not the actual socket context held by the ker‐ nel. Sockets are typically labeled with the context of the creating process, however the context shown will reflect any policy role, type and/or range tran‐ sition rules applied, and is therefore a useful reference. -N NSNAME, --net=NSNAME Switch to the specified network namespace name. -b, --bpf Show socket classic BPF filters (only administrators are allowed to get these information). -4, --ipv4 Display only IP version 4 sockets (alias for -f inet). -6, --ipv6 Display only IP version 6 sockets (alias for -f inet6). -0, --packet Display PACKET sockets (alias for -f link). -t, --tcp Display TCP sockets. -u, --udp Display UDP sockets. -d, --dccp Display DCCP sockets. -w, --raw Display RAW sockets. -x, --unix Display Unix domain sockets (alias for -f unix). -S, --sctp Display SCTP sockets. --tipc Display tipc sockets (alias for -f tipc). --vsock Display vsock sockets (alias for -f vsock). --xdp Display XDP sockets (alias for -f xdp). -M, --mptcp Display MPTCP sockets. --inet-sockopt Display inet socket options. -f FAMILY, --family=FAMILY Display sockets of type FAMILY. Currently the following families are sup‐ ported: unix, inet, inet6, link, netlink, vsock, tipc, xdp. -A QUERY, --query=QUERY, --socket=QUERY List of socket tables to dump, separated by commas. The following identifiers are understood: all, inet, tcp, udp, raw, unix, packet, netlink, unixdgram, unixstream, unixseqpacket, packetraw, packetdgram, dccp, sctp, tipc, vsockstream, vsockdgram, xdp, mptcp. Any item in the list may optionally be prefixed by an exclamation mark (!) to exclude that socket table from being dumped. -D FILE, --diag=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, --filter=FILE Read filter information from FILE. Each line of FILE is interpreted like sin‐ gle command line option. If FILE is - stdin is used. FILTER := [ state STATE-FILTER ] [ EXPRESSION ] Please take a look at the official documentation for details regarding filters."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ip",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ip/8/json"
        }
    ]
}