View disk space, DF command
DF-lH
You can use netstat to view network port information.
Display netstat-N with IP Address
Netstat-N | grep Reg can add some filtering information
Netstat-N | WC-l count the total number of net stat-n
WC
$ WC -- Help
Usage: WC [Option]... [file]...
Print newline, word, and byte counts for each file, and a total line if
More than one file is specified. With no file, or when file is -,
Read standard input.
-C, -- bytes print the byte counts
-M, -- chars print the character counts
-L, -- lines print the newline counts
-L, -- Max-line-length print the length of the longest line
-W, -- words print the word counts
-- Help display this help and exit
-- Version output version information and exit
Netstat
English description
$ Netstat -- Help
Usage: netstat [-veennccf] [<af>]-r netstat {-v | -- version |-H | -- help}
Netstat [-vnncaeol] [<socket>...]
Netstat {[-veennac]-I [<iface>] | [-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 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
Usage
Function Description:Displays the network status.
Syntax:Netstat [-accefghilmnnoprstuvvwx] [-A <network type>] [-- IP]
Note:The netstat command can be used to show you the network conditions of the entire Linux system.
Parameters:
-A or -- all indicates the sockets in all connections.
-A <network type> or -- <network type> lists the related addresses of the network type connections.
-C or -- continuous continuously lists the network status.
-C or -- cache displays the cache information configured by the router.
-E or -- extend displays other network-related information.
-F or -- fib displays fib.
-G or -- groups displays a list of members of the Multi-Broadcast Function Group.
-H or -- Help Online Help.
-I or -- interfaces displays the network interface information form.
-L or -- listening displays the socket of the monitored server.
-M or -- masquerade displays disguised network connections.
-N or -- numeric directly uses the IP address instead of the Domain Name Server.
-N or -- Netlink or -- symbolic display the symbolic connection name of the network hardware peripheral device.
-O or -- timers displays the timer.
-P or -- Programs: displays Program Identifier and program name.
-R or -- route displays the routing table.
-S or -- statistice displays a statistical table of network work information.
-T or -- TCP shows the connection status of the TCP transmission protocol.
-U or -- UDP shows the connection status of UDP transmission protocol.
-V or -- verbose displays the command execution process.
-V or -- version displays version information.
-W or -- raw shows the connection status of the raw transmission protocol.
-X or -- Unix: the effect of this parameter is the same as that of the specified "-a Unix" parameter.
-- IP or -- Inet this parameter has the same effect as the specified "-A Inet" parameter.
Add an articleArticle
Http://hi.chinaunix.net /? 20290281/viewspace-47424