1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 12:55:24 +02:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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`