1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

lsof: find the process listening on a local port (#3188)

This commit is contained in:
Futtetennista 2019-08-20 19:13:45 +01:00 committed by Marco Bonelli
parent 48ce816e61
commit 5532175b15

View file

@ -30,3 +30,7 @@
- List open files in a directory:
`lsof +D {{path/to/directory}}`
- Find the process that is listening on a local TCP port:
`lsof -iTCP:{{port}} -sTCP:LISTEN`