wc –help
用法:wc [选项]… [文件]…
或:wc [选项]… –files0-from=F
输出每个指定文件的行数、单词计数和字节数,如果指定了
多于一个文件,继续给出所有相关数据的总计。如果没有指定
文件,或者文件为”-“,则从标准输入读取数据。
-c, –bytes 输出字节数统计
-m, –chars 输出字符数统计
-l, –lines 输出行数统计
–files0-from=文件 从指定文件读取以NUL 终止的名称,如果该文件被
指定为”-“则从标准输入读文件名
-L, –max-line-length 显示最长行的长度
-w, –words 显示单词计数
–help 显示此帮助信息并退出
–version 显示版本信息并退出
netstat –help
usage: netstat [-veenNcCF] [] -r netstat {-V|–version|-h|–help}
netstat [-vnNcaeol] [ …]
netstat { [-veenNac] -I[] | [-veenNac] -i | [-cnNe] -M | -s } [delay]
-r, –route display routing table
-I, –interfaces= display interface table for
-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
-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
-c, –continuous continuous listing
-l, –listening display listening server sockets
-a, –all, –listening display all sockets (default: connected)
-o, –timers display timers
-F, –fib display Forwarding Information Base (default)
-C, –cache display routing cache instead of FIB
-T, –notrim stop trimming long addresses
-Z, –context display SELinux security context for sockets
: Name of interface to monitor/list.
={-t|–tcp} {-u|–udp} {-S|–sctp} {-w|–raw} {-x|–unix} –ax25 –ipx –netrom
=Use ‘-A ‘ or ‘–‘; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
netstat –apn
netstat –ntlp //Active Internet connections (only servers)