Skip to content

Commit eb040f1

Browse files
authored
Update ss.md
1 parent 31c36aa commit eb040f1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

command/ss.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ss
22
===
33

4-
获取socket统计信息
4+
获取socket统计信息,iproute2 包附带的另一个工具,允许你查询 socket 的有关统计信息。
55

66
## 补充说明
77

@@ -193,5 +193,16 @@ UNCONN 0 0 127.0.0.1:ntp
193193
UNCONN 0 0 *:ntp *:*
194194
```
195195

196+
#### 出所有端口为 22(ssh)的连接
197+
198+
```bash
199+
ss state all sport = :ssh
200+
201+
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
202+
tcp LISTEN 0 128 *:ssh *:*
203+
tcp ESTAB 0 0 192.168.0.136:ssh 192.168.0.102:46540
204+
tcp LISTEN 0 128 :::ssh :::*
205+
```
206+
196207

197208
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)