From afe6490ab0efa03d00c67a80c5d358275d35a49e Mon Sep 17 00:00:00 2001 From: trimstray Date: Tue, 3 Jul 2018 22:04:09 +0200 Subject: [PATCH] updated one-liners - signed-off-by: trimstray --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 9552d64..3c866f7 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,12 @@ ___ fuser -k filename ``` +###### Show what PID is listening on specific port + +```bash +fuser -v 53/udp +``` + ___ ##### Tool: [ps](https://curl.haxx.se) @@ -894,6 +900,11 @@ lsof -Pni4 | grep LISTEN | column -t lsof -c "process" ``` +###### View user activity per directory + +```bash +lsof -u username -a +D /etc +``` ___ **Tool: [netstat](http://www.dest-unreach.org/socat/doc/socat.html/)**