ss linux command

ss 是比 netstat 更强大的后续版本.
The ss command is capable of showing more information than the netstat and is faster. The netstat command reads various /proc files to gather information. However this approach falls weak when there are lots of connections to display. This makes it slower. The ss command gets its information directly from kernel space.

ss -l
ss -t
ss -u
ss -nt
ss -ltp
ss -nt '( dst :443 or dst :80 )'

使用 -i 参数能显示更多关于每个 socket 的信息,比如接受/发送多少字节, 最后发送/接收/ack 了多久了, 采用了什么算法.
-p 显示进程信息, -e 显示用户信息. -m 显示内存信息.

标签: none