diff --git a/pages/common/lsof.md b/pages/common/lsof.md index 221bcbfa4..0eb10cf7f 100644 --- a/pages/common/lsof.md +++ b/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`