CONTENT
  • CHANGES
Szukaj
counter

#top netstat


netstat - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

Powiązane:
ifconfig, ifenslave, ip, netstat, route,

SYNOPSIS
netstat [address_family_options] [--tcp|-t] [--udp|-u] [--raw|-w] [--listening|-l] [--all|-a] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports] [--symbolic|-N] [--extend|-e[--extend|-e]] [--timers|-o] [--program|-p] [--verbose|-v] [--continuous|-c] [delay]

netstat {--route|-r} [address_family_options] [--extend|-e[--extend|-e]] [--verbose|-v] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports] [--continuous|-c] [delay]

netstat {--interfaces|-i} [iface] [--all|-a] [--extend|-e[--extend|-e]] [--verbose|-v] [--program|-p] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports] [--continuous|-c] [delay]

netstat {--groups|-g} [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports] [--continuous|-c] [delay]

netstat {--masquerade|-M} [--extend|-e] [--numeric|-n] [--numeric-hosts][--numeric-ports][--numeric-ports] [--continuous|-c] [delay]

netstat {--statistics|-s} [--tcp|-t] [--udp|-u] [--raw|-w] [delay]

netstat {--version|-V}

netstat {--help|-h}

address_family_options:
[--protocol={inet,unix,ipx,ax25,netrom,ddp}[,...]] [--unix|-x] [--inet|--ip] [--ax25] [--ipx] [--netrom] [--ddp]


DESCRIPTION



OPTIONS
--verbose , -v
Tell the user what is going on by being verbose. Especially print some useful information about unconfigured address families.

--numeric , -n
Show numerical addresses instead of trying to determine symbolic host, port or user names.

--numeric-hosts
shows numerical host addresses but does not affect the resolution of port or user names.

--numeric-ports
shows numerical port numbers but does not affect the resolution of host or user names.

--numeric-users
shows numerical user IDs but does not affect the resolution of host or port names.

--protocol=family , -A
Specifies the address families (perhaps better described as low level protocols) for which connections are to be shown. family is a comma (',') separated list of address family keywords like inet, unix, ipx, ax25, netrom, and ddp. This has the same effect as using the --inet, --unix (-x), --ipx, --ax25, --netrom, and --ddp options.

The address family inet includes raw, udp and tcp protocol sockets.

-c, --continuous
This will cause netstat to print the selected information every second continuously.

-e, --extend
Display additional information. Use this option twice for maximum detail.

-o, --timers
Include information related to networking timers.

-p, --program
Show the PID and name of the program to which each socket belongs.

-l, --listening
Show only listening sockets. (These are omitted by default.)

-a, --all
Show both listening and non-listening sockets. With the --interfaces option, show interfaces that are not marked

-F
Print routing information from the FIB. (This is the default.)

-C
Print routing information from the route cache.

-Z --context
If SELinux enabled print SELinux context.

-T --notrim
Stop trimming long addresses.

delay
Netstat will cycle printing through statistics every delay seconds. UP.



EXAMPLES
display IPv4 routing table
netstat -rn

display IPv4 routing table
netstat -A inet  -rn

display IPv6 routing table
netstat -A inet6 -rn

display IPv4 listening sockets
netstat -pluton

display IPv4 listening sockets
netstat -A inet  -pluton

display IPv6 listening sockets
netstat -A inet6 -pluton

display UNIX listening sockets
netstat -A unix  -pluton

display IPv4 outgoing connections
netstat -punto

display IPv4 outgoing connections
netstat -A inet -punto

display IPv6 outgoing connections
netstat -A inet6 -punto

display UNIX outgoing connections
netstat -A unix -punto




Zmodyfikowany ostatnio: 2014/05/15 09:59:37 (9 lat temu), textsize: 5,36 kB, htmlsize: 6,80 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników