系统说明:
NAME
sockstat -- list open sockets
SYNOPSIS
sockstat [-46clu] [-p ports]
DESCRIPTION
The sockstat command lists open Internet or UNIX domain sockets.
The following options are available:
-4 Show AF_INET (IPv4) sockets.
-6 Show AF_INET6 (IPv6) sockets.
-c Show connected sockets.
-l Show listening sockets.
-p ports Only show Internet sockets if either the local or foreign
port number is on the specified list. The ports argument is
a comma-separated list of port numbers and ranges specified
as first and last port separated by a dash.
-u Show AF_LOCAL (UNIX) sockets.
If neither -4, -6 or -u is specified, sockstat will list sockets in all
three domains.
If neither -c or -l is specified, sockstat will list both listening and
connected sockets.
The information listed for each socket is:
USER The user who owns the socket.
COMMAND The command which holds the socket.
PID The process ID of the command which holds the socket.
FD The file descriptor number of the socket.
PROTO The transport protocol associated with the socket for
Internet sockets, or the type of socket (stream or data-
gram) for UNIX sockets.
LOCAL ADDRESS For Internet sockets, this is the address the local end
of the socket is bound to (see getsockname(2)). For
bound UNIX sockets, it is the socket's filename. For
other UNIX sockets, it is a right arrow followed by the
endpoint's filename, or ``??'' if the endpoint could not
be determined.
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of
the socket is bound to (see getpeername(2)).
Note that TCP sockets in the AF_INET or AF_INET6 domains that are not in
one of the LISTEN, SYN_SENT, or ESTABLISHED states may not be shown by
sockstat; use netstat(1) to examine them instead.
SEE ALSO
fstat(1), netstat(1), inet(4), inet6(4)
HISTORY
The sockstat command appeared in FreeBSD 3.1.
AUTHORS
The sockstat command and this manual page were written by Dag-Erling
Smorgrav <des@FreeBSD.org>.
FreeBSD 5.4 September 7, 2004 FreeBSD 5.4
相关推荐
FreeBSD 操作系统 端口详细介绍..
FreeBSD Rsync同步学习与配置全过程.doc
freebsd中文手册
freebsd 中文使用手册freebsd 中文使用手册freebsd 中文使用手册freebsd 中文使用手册
freebsd中文官方教程,供大家参考使用。。
本手册适用于安装 FreeBSD 6.4-RELEASE 和 FreeBSD 7.2-RELEASE 以及它们的日常使用。 这个手册目前由很多人 持续地 维护。其中的内容需要不断地更新。 如果您有兴趣参加这个项目,请发邮件到 FreeBSD 文档计划邮件...
然而,因为386BSD源代码的合理性受到质疑以及Novell(当时UNIX的版权拥有者)与柏克莱接连而来的诉讼,FreeBSD在1995年一月发布的 2.0-RELEASE 中以柏克莱加州大学的 4.4BSD-Lite Release 全面改写,FreeBSD ...
FreeBSD 中文使用手册 最新版 书中包含最新的技术细节 内容详尽 清楚
第一部分包括前3章,是对FreeBSD历史、设计和内核服务的综述性介绍。第二部分包括第4章和第5章,分别论述了进程管理和存储管理。第三部分第6章到第10章,详细介绍了I/O系统,包括概述、设备、本地文件系统、网络文件...
在FreeBSD上查看邮件 网络文件系统(NFS) NFS客户支持 NFS服务器 第5章 设置和使用X Window 安装和设置X服务器 X Free86的硬件要求 安装XFree86 使用XF86Setup配置X服务器 使用xf86config配置X服务器 使用和...
13.1.4 端口与关联 13.1.5 协议控制块 13.2 UDP协议 13.2.1 初始化 13.2.2 输出 13.2.3 输入 13.2.4 控制操作 13.3 Internet协议(IP) 13.3.1 输出 13.3.2 输入 13.3.3 转发 13.4 TCP协议 13.4.1 TCP连接状态 13.4.2...
FreeBSD 5.4 网络通信过程中内核例程调用流程
FreeBSD是一种类UNIX操作系统,但不是真正意义上的UNIX操作系统,它是由经过BSD、386BSD和4.4BSD发展而来的Unix的一个重要分支,它支持 x86 兼容(包括 Pentium® 和 Athlon™)、amd64 兼容(包括 Opteron™、Athlon...
FreeBSD中文手册.chm 非常好的FREEBSD入门手册
FreeBSD 8.1 的使用手册 学习FreeBSD最好的手册,希望大家能喜欢。
PDF 版本 FreeBSD 9.0 中文使用操作 安装、配置、内核、多媒体、防火墙、RAID、虚拟化、网络等使用介绍。
本资料是由著名的王俊斌先生把他使用FreeBSD Linux系统及从事Linux程序开发的宝贵经验编成一部资料,以...因此,当读者在使用 FreeBSD 遇到问题时,千万不因气馁,只要再加把劲,您也可以在 FreeBSD 世界中得心应手。
freeBSD架设管理与应用freeBSD架设管理与应用freeBSD架设管理与应用