Neo Anderson's Blog

Linux基础命令- Ss

字数统计: 372阅读时长: 1 min
2020/10/20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Usage: ss [ OPTIONS ]
ss [ OPTIONS ] [ FILTER ]
-h, --help this message #显示帮助菜单
-V, --version output version information #输出版本信息
-n, --numeric don't resolve service names #不解析服务名
-r, --resolve resolve host names #解析主机名
-a, --all display all sockets #显示所有的套接字
-l, --listening display listening sockets #显示监听状态的socket
-o, --options show timer information #显示计时器信息
-e, --extended show detailed socket information #展示详细的socket信息
-m, --memory show socket memory usage #展示socket的内存使用
-p, --processes show process using socket #展示使用socket的进程
-i, --info show internal TCP information #展示tcp内部信息
-s, --summary show socket usage summary #展示socket使用汇总

-4, --ipv4 display only IP version 4 sockets #只显示ipv4的sockets
-6, --ipv6 display only IP version 6 sockets #只显示ipv6的sockets
-0, --packet display PACKET sockets #显示包经过的网络接口
-t, --tcp display only TCP sockets #显示tcp套接字
-u, --udp display only UDP sockets #显示udp套接字
-d, --dccp display only DCCP sockets #显示dccp套接字
-w, --raw display only RAW sockets #显示raw套接字
-x, --unix display only Unix domain sockets #显示unix套接字
-f, --family=FAMILY display sockets of type FAMILY #显示指定类型的套接字

-A, --query=QUERY, --socket=QUERY #查看某种类型
QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]

-D, --diag=FILE Dump raw information about TCP sockets to FILE #将关于TCP套接字的原始信息转储到文件中
-F, --filter=FILE read filter information from FILE #使用此参数指定的过滤规则文件,过滤某种状态的连接
FILTER := [ state TCP-STATE ] [ EXPRESSION ]
CATALOG