minor updates
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
6c13f0fc5e
commit
4f967b9522
@ -1328,7 +1328,7 @@ awk '{ if($7 > 1048576) print $7/1048576 "MB" " " $9 " " $1 }' | \
|
|||||||
sort -n -u | tail | column -t
|
sort -n -u | tail | column -t
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Get the path of a process
|
###### Show current working directory of a process
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
lsof -p <PID> | grep cwd
|
lsof -p <PID> | grep cwd
|
||||||
@ -1350,7 +1350,7 @@ ps awwfux | less -S
|
|||||||
ps hax -o user | sort | uniq -c | sort -r
|
ps hax -o user | sort | uniq -c | sort -r
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Show all processes by name with ps main header
|
###### Show all processes by name with main header
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ps -lfC nginx
|
ps -lfC nginx
|
||||||
@ -2005,7 +2005,7 @@ exec /sbin/init 6
|
|||||||
exec /sbin/init
|
exec /sbin/init
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Show the PID's current working directory
|
###### Show current working directory of a process
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
readlink -f /proc/<PID>/cwd
|
readlink -f /proc/<PID>/cwd
|
||||||
|
Loading…
Reference in New Issue
Block a user