NETSTAT(8) Linux System Administrator's Manual NETSTAT(8) (NAME) netstat - (SYNOPSIS) netstat [address_family_options] [--tcp|-t] [--udp|-u] [--udplite|-U] [--sctp|-S] [--raw|-w] [--l2cap|-2] [--rfcomm|-f] [--listening|-l] [--all|-a] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--symbolic|-N] [--extend|-e[--extend|-e]] [--timers|-o] [--program|-p] [--verbose|-v] [--continuous|-c] [--wide|-W] netstat {--route|-r} [address_family_options] [--extend|-e[--extend|-e]] [--verbose|-v] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--interfaces|-i} [--all|-a] [--extend|-e[--extend|-e]] [--verbose|-v] [--program|-p] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--groups|-g} [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--masquerade|-M} [--extend|-e] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--statistics|-s} [--tcp|-t] [--udp|-u] [--udplite|-U] [--sctp|-S] [--raw|-w] netstat {--version|-V} netstat {--help|-h} address_family_options: [-4|--inet] [-6|--inet6] [--protocol={inet,inet6,unix,ipx,ax25,netrom,ddp,bluetooth, ... } ] [--unix|-x] [--inet|--ip|--tcpip] [--ax25] [--x25] [--rose] [--ash] [--bluetooth] [--ipx] [--netrom] [--ddp|--appletalk] [--econet|--ec] (NOTES) . netstat ss . netstat -r ip route . netstat -i ip -s link . netstat -g ip maddr . (DESCRIPTION) netstat . : ( ) netstat . . --route, -r . route(8) . netstat -r route -e . --groups, -g (Multicast) IPv4 IPv6 . --interfaces, -i . --masquerade, -M (Masqueraded) . --statistics, -s . (OPTIONS) --verbose, -v . . --wide, -W IP () . . --numeric, -n . --numeric-hosts . --numeric-ports . --numeric-users (UID) . --protocol=family, -A ( ) . family (',') inet inet6 unix ipx ax25 netrom econet ddp bluetooth . --inet|-4 --inet6|-6 --unix|-x --ipx --ax25 --netrom --ddp --bluetooth . inet (IPv4) raw udp udplite tcp . bluetooth l2cap rfcomm . -c, --continuous netstat . -e, --extend . . -o, --timers . -p, --program (PID) . ( ) . -l, --listening (Listening) . ( .) -a, --all . --interfaces (up) . -F (FIB) . ( .) -C () . (OUTPUT) (TCP, UDP, UDPLite, raw) Proto (tcp udp udpl raw). Recv-Q Established: . Listening: .. syn backlog . Send-Q Established: . Listening: .. syn backlog . Local Address . --numeric (-n) (FQDN) . Foreign Address . "Local Address" . State . raw UDP UDPLite . : ESTABLISHED . SYN_SENT . SYN_RECV . FIN_WAIT1 . FIN_WAIT2 . TIME_WAIT . CLOSE . CLOSE_WAIT . LAST_ACK . . LISTEN . --listening (-l) --all (-a) . CLOSING . UNKNOWN . User (UID) . PID/Program name (PID) . --program . (superuser) . IPX . Timer TCP . timer(a/b/c) . : off . on . keepalive (keepalive) . timewait timewait . : a . b . c (keepalive) . (UNIX Domain Sockets) Proto ( unix). RefCnt ( ). Flags SO_ACCEPTON ( ACC) SO_WAITDATA (W) SO_NOSPACE (N). SO_ACCEPTON . . Type : SOCK_DGRAM ( ) . SOCK_STREAM ( ) . SOCK_RAW (raw) . SOCK_RDM . SOCK_SEQPACKET (Sequential Packet) . SOCK_PACKET . UNKNOWN - :-) State : FREE . LISTENING . --listening (-l) --all (-a) . CONNECTING . CONNECTED . DISCONNECTING . (empty) . UNKNOWN . PID/Program name (PID) . . Path . IPX ( ) NET/ROM ( ) AX.25 ( ) (FILES) /etc/services -- /proc -- proc . /proc/net/dev -- /proc/net/raw -- (raw) /proc/net/tcp -- TCP /proc/net/udp -- UDP /proc/net/udplite -- UDPLite /proc/net/igmp -- IGMP /proc/net/unix -- (Unix domain) /proc/net/ipx -- IPX /proc/net/ax25 -- AX25 /proc/net/appletalk -- DDP (appletalk) /proc/net/nr -- NET/ROM /proc/net/route -- IP /proc/net/ax25_route -- AX25 /proc/net/ipx_route -- IPX /proc/net/nr_nodes -- NET/ROM /proc/net/nr_neigh -- NET/ROM /proc/net/ip_masquerade -- (Masqueraded) /sys/kernel/debug/bluetooth/l2cap -- L2CAP /sys/kernel/debug/bluetooth/rfcomm -- /proc/net/snmp -- (SEE ALSO) route(8), ifconfig(8), iptables(8), proc(5), ss(8), ip(8) (BUGS) . . (AUTHORS) netstat Fred Baumgarten Matt Welsh . Alan Cox Tuan Hoang . net-tools Bernd Eckenfels . UDPLite Brian Micek . net-tools 2014-10-07 NETSTAT(8)