diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
commit | b41b9034225ab3e49980d9de55c141011b6383b0 (patch) | |
tree | 891014b4c2e803e01ac7a1fd2b60819fbc5a6e73 /sys/man/1/netstat | |
parent | c558a99e0be506a9abdf677f0ca4490644e05fc1 (diff) |
Import sources from 2011-03-30 iso image - sys/man
Diffstat (limited to 'sys/man/1/netstat')
-rwxr-xr-x | sys/man/1/netstat | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/man/1/netstat b/sys/man/1/netstat new file mode 100755 index 000000000..817e763f1 --- /dev/null +++ b/sys/man/1/netstat @@ -0,0 +1,51 @@ +.TH NETSTAT 1 +.SH NAME +netstat \- summarize network connections +.SH SYNOPSIS +.B netstat +[ +.B -in +] [ +.B -p +.I proto +] [ +.I netmtpt +] +.SH DESCRIPTION +.I Netstat +prints information about network mounted at +.IR netmtpt , +default +.BR /net . +For +.I IP +connections, +.I netstat +reports the protocol, connection number, user, +connection state, local port, remote port and +remote address. +.PP +The options are: +.TP +.B -i +Instead of the usual listing, print one line per network interface. +Each line gives the +device, MTU, local address, mask, remote address, packets in, +packets out, errors in, and errors out for this interface. +.TP +.B -n +By default, +.I netstat +looks up port numbers and addresses in the network databases +to print symbolic names if possible. +This option disables such translation. +.TP +.B -p +Show only connections with the given protocol. +.PD +.SH FILES +.B /net/*/* +.SH SOURCE +.B /sys/src/cmd/netstat.c +.SH "SEE ALSO" +.IR ipconfig (8) |