参考:20 Netstat Commands for Linux Network Management
Foreword
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
Options
-a:Show both listening and non-listening (for TCP this means established connections) sockets
-at:列出Active Internet connections (servers and established)
-au:列出Active Internet connections (servers and established)
-ax:列出Unix domain sockets
-l:Show only listening sockets.
-lt:列出Active Internet connections (only servers)
-lu:列出Active Internet connections (only servers)
-lx:列出Unix domain sockets
-s:Display summary statistics for each protocol.
-p:Show the PID and name of the program to which each socket belongs.
-c #:This will cause netstat to print the selected information every # seconds continuously.
-r:Display the kernel routing tables

-I=iface , -i:Display a table of all network interfaces, or the specified iface.

-ie:similar to ifconfig

本文详细介绍Netstat命令的各种选项及其在网络管理中的应用,包括显示网络连接、路由表、接口统计等信息。通过不同的参数组合,Netstat能够帮助管理员更好地理解和诊断网络状况。
789

被折叠的 条评论
为什么被折叠?



