Skip to content

Commit 7afb5c6

Browse files
authored
Update lsof.md
1 parent d0114e4 commit 7afb5c6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

command/lsof.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,10 @@ events/1 7 root cwd DIR 8,2 4096 2 /
133133
lsof -p $pid
134134
```
135135

136-
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
136+
获取端口对应的进程ID=>pid
137+
138+
```
139+
lsof -i:9981 -P -t -sTCP:LISTEN
140+
```
141+
142+
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

0 commit comments

Comments
 (0)