2015-11-24 15:37:43 +02:00
# top
> Display dynamic real-time information about running processes.
2021-06-28 23:48:24 +01:00
> More information: <https://manned.org/top>.
2015-11-24 15:37:43 +02:00
2023-06-27 14:57:35 -07:00
- Start `top` :
2015-11-24 15:37:43 +02:00
`top`
2016-06-22 16:35:00 +05:30
- Do not show any idle or zombie processes:
2015-11-24 15:37:43 +02:00
2025-03-12 21:05:58 +02:00
`top {{[-i|--idle-toggle]}}`
2015-11-24 15:37:43 +02:00
2016-06-22 19:02:12 +01:00
- Show only processes owned by given user:
2015-11-24 15:37:43 +02:00
2025-03-12 21:05:58 +02:00
`top {{[-u|--filter-only-euser]}} {{username}}`
2015-11-24 15:37:43 +02:00
2020-06-29 22:09:16 +03:00
- Sort processes by a field:
2025-03-12 21:05:58 +02:00
`top {{[-o|--sort-override]}} {{field_name}}`
2020-06-29 22:09:16 +03:00
2020-01-11 21:53:58 +08:00
- Show the individual threads of a given process:
2025-03-12 21:05:58 +02:00
`top {{[-Hp|--threads-show --pid]}} {{process_id}}`
2020-01-11 21:53:58 +08:00
2016-06-22 19:02:12 +01: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):
2016-06-22 16:35:00 +05:30
2025-03-12 21:05:58 +02:00
`top {{[-p|--pid]}} $(pgrep {{[-d|--delimiter]}} ',' {{process_name}})`
2016-06-22 16:35:00 +05:30
2024-01-30 01:55:24 -03:00
- Display help about interactive commands:
2015-11-24 15:37:43 +02:00
2025-03-09 14:03:08 +02:00
`<?>`