2025-03-14 21:59:59 -06:00
# top
> Display dynamic real-time information about running processes.
> More information: <https://manned.org/top>.
- Start `top` :
`top`
- Do not show any idle or zombie processes:
2025-03-19 19:23:44 -06:00
`top {{[-i|--idle-toggle]}}`
2025-03-14 21:59:59 -06:00
- Show only processes owned by given user:
2025-03-19 19:23:44 -06:00
`top {{[-u|--filter-only-euser]}} {{username}}`
2025-03-14 21:59:59 -06:00
- Sort processes by a field:
2025-03-19 19:23:44 -06:00
`top {{[-o|--sort-override]}} {{field_name}}`
2025-03-14 21:59:59 -06:00
- Show the individual threads of a given process:
2025-03-19 19:23:44 -06:00
`top {{[-Hp|--threads-show --pid]}} {{process_id}}`
2025-03-14 21:59:59 -06:00
- 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):
2025-03-19 19:23:44 -06:00
`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{process_name}})`
2025-03-14 21:59:59 -06:00
- Display help about interactive commands:
2025-03-19 19:23:44 -06:00
`<?>`