OS Manuals

/usr/bin/netstat

Linux networking base tools

From net-tools 2.10-r39 (os), captured 2026-11-05 by running netstat --help (exit 0). permalink

    inet (DARPA Internet) inet6 (IPv6) netrom (AMPR NET/ROM)
usage: netstat [-vWeenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help}
       netstat [-vWnNcaeol] [<Socket> ...]
       netstat { [-vWeenNac] -i | [-cnNe] -M | -s [-6tuw] }

        -r, --route              display routing table
        -i, --interfaces         display interface table
        -g, --groups             display multicast group memberships
        -s, --statistics         display networking statistics (like SNMP)
        -M, --masquerade         display masqueraded connections

        -v, --verbose            be verbose
        -W, --wide               don't truncate IP addresses
        -n, --numeric            don't resolve names
        --numeric-hosts          don't resolve host names
        --numeric-ports          don't resolve port names
        --numeric-users          don't resolve user names
        -N, --symbolic           resolve hardware names
        -e, --extend             display other/more information
        -p, --programs           display PID/Program name for sockets
        -o, --timers             display timers
        -c, --continuous         continuous listing

        -l, --listening          display listening server sockets
        -a, --all                display all sockets (default: connected)
        -F, --fib                display Forwarding Information Base (default)
        -C, --cache              display routing cache instead of FIB

  <Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw}
           {-x|--unix} --ax25 --ipx --netrom
  <AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: inet
  List of possible address families (which support routing):
Options (20)
OptionDescriptionSource
-r, --routedisplay routing tablehelp
-i, --interfacesdisplay interface tablehelp
-g, --groupsdisplay multicast group membershipshelp
-s, --statisticsdisplay networking statistics (like SNMP)help
-M, --masqueradedisplay masqueraded connectionshelp
-v, --verbosebe verbosehelp
-W, --widedon't truncate IP addresseshelp
-n, --numericdon't resolve nameshelp
--numeric-hostsdon't resolve host nameshelp
--numeric-portsdon't resolve port nameshelp
--numeric-usersdon't resolve user nameshelp
-N, --symbolicresolve hardware nameshelp
-e, --extenddisplay other/more informationhelp
-p, --programsdisplay PID/Program name for socketshelp
-o, --timersdisplay timershelp
-c, --continuouscontinuous listinghelp
-l, --listeningdisplay listening server socketshelp
-a, --alldisplay all sockets (default: connected)help
-F, --fibdisplay Forwarding Information Base (default)help
-C, --cachedisplay routing cache instead of FIBhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.