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:
-4
AF_INET
(IPv4) sockets.-6
AF_INET6
(IPv6) sockets.-c
-f
address_familyAF_INET
; inet6, for
AF_INET6
; and local or
unix, for AF_LOCAL
.-l
-n
-p
ports-u
AF_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:
USER
COMMAND
PID
FD
PROTO
LOCAL
ADDRESS
FOREIGN
ADDRESS
sockstat
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.4 |