git: 9front

ref: b143811a53bf25824e74b7e6e6c2ee7af8c7a954
dir: /sys/man/1/netstat/

View raw version
.TH NETSTAT 1
.SH NAME
netstat \- summarize network connections
.SH SYNOPSIS
.B netstat
[
.B -int
] [
.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.
.TP
.B -t
Prefix connections with how many seconds they've been alive.
The output is sorted with the youngest connections first.
.PD
.SH FILES
.B /net/*/*
.SH SOURCE
.B /rc/bin/netstat
.SH "SEE ALSO"
.IR ipconfig (8)