1
0
Эх сурвалжийг харах

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

Futtetennista 5 жил өмнө
parent
commit
5532175b15
1 өөрчлөгдсөн 4 нэмэгдсэн , 0 устгасан
  1. 4 0
      pages/common/lsof.md

+ 4 - 0
pages/common/lsof.md

@@ -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`