...
netstat[address_family_options] [--tcp|-t] [--udp|-u] [--raw|-w]
[--listening|-l] [--all|-a] [–-all --numeric|-an][--numeric|-n] [--numeric-hosts]
[--numericports][--
numeric-ports] [--symbolic|-N] [--extend|-e[--extend|-e]]
[--timers|-o] [--program|-p] [--verbose|-v]
[--continuous|-c] [delay]
...
netstat{--interfaces|-I|-i} [iface] [--all|-a] [–-all --numeric|-an][--extend|-e] [--verbose|-
v] [--program|-p] [--numeric|-n] [--numeric-hosts]
[--numericports][--numeric-ports] [--continuous|-c] [delay]
...
Show both listening and non-listening sockets. With the --interfaces
option, show interfaces that are not marked
-an
Combination of two commandsoptions -a
and -n
:
-a
Display current connections and all listening ports.
-n
...
,
-C
Print routing information from the route cache.
...