Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-12 00:18:03 +00:00
parent 4ed84edbe1
commit ffbd8c31db
29 changed files with 244 additions and 70 deletions

View File

@@ -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`