# 监听的 TCP 端口 netstat -nplt
# TCP 连接状态统计 netstat -nt | tail -n +3 | awk '{c[$6]++}END{for(s in c){print(s, c[s])}}' | sort -nk2 | column -t
FreeBSD 上常用的:
# 显示路由表 netstat -rn
-n, --numeric
-p, --program
-t, --tcp
-u, --udp
-s
Send-Q
Recv-Q
recv()