Browse Source

updated one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
pull/1/head
trimstray 6 years ago
parent
commit
afe6490ab0
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      README.md

+ 11
- 0
README.md View File

@@ -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/)**


Loading…
Cancel
Save