Displays protocol statistics and current TCP/IP network connections.
显示统计正在使用TCP/IP协议的网络联接
NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]
-a Displays all connections and listening ports.
显示所有的联接和正在侦听的端口
-e Displays Ethernet statistics. This may be combined with the -s
option.
显示统计以太网信息。此参数可以与-s一起使用。
-n Displays addresses and port numbers in numerical form.
用表格形式显示地址和端口号
-p proto Shows connections for the protocol specified by proto; proto
may be TCP or UDP. If used with the -s option to display
per-protocol statistics, proto may be TCP, UDP, or IP.
可以显示TCP or UDP 协议的联接;如果,你使用 -S参数则可以分另统计显示
TCP,UDP,or IP 的情况。
-r Displays the routing table.
显示所有的路由表
-s Displays per-protocol statistics. By default, statistics are
shown for TCP, UDP and IP; the -p option may be used to specify
a subset of the default.
显示每种协议的统计情况。缺省情况为统计TCP,UDP,IP协议的情况。-P
参数可以使用缺省的子网。
interval Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.
当一屏不能显示完的时候,加上此参数为每屏所介隔的时间。按ctrl+c
中止。如果,省略则netstat 一次性的显示出所有的信息。