lsof: edit -iTCP example with -i6TCP, -n and -P (#7153)

This commit is contained in:
Ziyan "Jerry" Chen
2021-11-10 16:45:45 -05:00
committed by GitHub
parent 7618fef666
commit 1eb7603197

View File

@@ -32,6 +32,6 @@
`lsof +D {{path/to/directory}}`
- Find the process that is listening on a local TCP port:
- Find the process that is listening on a local IPv6 TCP port and don't convert network or port numbers:
`lsof -iTCP:{{port}} -sTCP:LISTEN`
`lsof -i6TCP:{{port}} -sTCP:LISTEN -n -P`