| SOCKSTAT(1) | General Commands Manual | SOCKSTAT(1) |
sockstat —
sockstat |
[-46clnu] [-f
address_family] [-p
ports] |
sockstat command lists open Internet or
UNIX domain sockets.
The following options are available:
-4AF_INET (IPv4) sockets.-6AF_INET6 (IPv6) sockets.-c-f
address_familyAF_INET; inet6, for
AF_INET6; and local or
unix, for AF_LOCAL.-l-n-p
ports-uAF_LOCAL (UNIX)
sockets.If neither -4, -6,
nor -u are specified,
sockstat will list sockets in all three domains.
If neither -c nor
-l are specified, sockstat
will list both listening and connected sockets, as well as those sockets
that are in neither state.
The information listed for each socket is:
USERCOMMANDPIDFDPROTOLOCAL
ADDRESSFOREIGN
ADDRESSsockstat command appeared in
FreeBSD 3.1. It was then rewritten for
NetBSD 3.0.
sockstat command was written by
Andrew Brown ⟨atatat@NetBSD.org⟩. This
manual page was written by Dag-Erling Smørgrav
<des@FreeBSD.org> and
was adapted to match the NetBSD implementation by
Andrew Brown ⟨atatat@NetBSD.org⟩.
| July 14, 2006 | NetBSD 9.2 |