tldr/pages/linux/top.md
Ein Verne 39fd1720c2 top: update page (#3744)
* top: update page

* Update pages/linux/top.md

Co-Authored-By: Zlatan Vasović <zlatanvasovic@gmail.com>

Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
2020-01-11 14:53:58 +01:00

28 lines
560 B
Markdown

# top
> Display dynamic real-time information about running processes.
- Start top:
`top`
- Do not show any idle or zombie processes:
`top -i`
- Show only processes owned by given user:
`top -u {{user_name}}`
- Show the individual threads of a given process:
`top -Hp {{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}})`
- Get help about interactive commands:
`?`