Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-13 00:18:34 +00:00
parent ffbd8c31db
commit 904f7fe0c1
46 changed files with 228 additions and 157 deletions

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Do not show any idle or zombie processes:
`top -i`
`top {{[-i|--idle-toggle]}}`
- Show only processes owned by given user:
`top -u {{username}}`
`top {{[-u|--filter-only-euser]}} {{username}}`
- Sort processes by a field:
`top -o {{field_name}}`
`top {{[-o|--sort-override]}} {{field_name}}`
- Show the individual threads of a given process:
`top -Hp {{process_id}}`
`top {{[-Hp|--threads-show --pid]}} {{process_id}}`
- Show only the processes with the given PID(s), passed as a comma-separated list. (Normally you wouldn't know PIDs off hand. This example picks the PIDs from the process name):
`top -p $(pgrep -d ',' {{process_name}})`
`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{process_name}})`
- Display help about interactive commands: