mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 08:53:55 +00:00
Update cheatsheets
This commit is contained in:
8
tldr/ps
8
tldr/ps
@@ -22,16 +22,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all processes of the current user in extra full format:
|
||||
|
||||
`ps --user $(id -u) -F`
|
||||
`ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F`
|
||||
|
||||
- List all processes of the current user as a tree:
|
||||
|
||||
`ps --user $(id -u) f`
|
||||
`ps {{[-u|--user]}} $(id {{[-u|--user]}}) {{[f|--forest]}}`
|
||||
|
||||
- Get the parent PID of a process:
|
||||
|
||||
`ps -o ppid= -p {{pid}}`
|
||||
`ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}`
|
||||
|
||||
- Sort processes by memory consumption:
|
||||
|
||||
`ps --sort size`
|
||||
`ps {{[k|--sort]}} size`
|
||||
|
||||
Reference in New Issue
Block a user