lsof: find the process listening on a local port (#3188)
This commit is contained in:

committed by
Marco Bonelli

parent
48ce816e61
commit
5532175b15
@@ -30,3 +30,7 @@
|
|||||||
- List open files in a directory:
|
- List open files in a directory:
|
||||||
|
|
||||||
`lsof +D {{path/to/directory}}`
|
`lsof +D {{path/to/directory}}`
|
||||||
|
|
||||||
|
- Find the process that is listening on a local TCP port:
|
||||||
|
|
||||||
|
`lsof -iTCP:{{port}} -sTCP:LISTEN`
|
||||||
|
Reference in New Issue
Block a user