2015-11-24 13:37:43 +00:00
# top
> Display dynamic real-time information about running processes.
2016-01-07 17:31:27 +00:00
- Start top:
2015-11-24 13:37:43 +00:00
`top`
2016-06-22 12:05:00 +01:00
- Do not show any idle or zombie processes:
2015-11-24 13:37:43 +00:00
`top -i`
2016-06-22 19:02:12 +01:00
- Show only processes owned by given user:
2015-11-24 13:37:43 +00:00
2020-02-08 18:56:05 +00:00
`top -u {{username}}`
2015-11-24 13:37:43 +00:00
2020-06-29 20:09:16 +01:00
- Sort processes by a field:
`top -o {{field_name}}`
2020-01-11 13:53:58 +00:00
- Show the individual threads of a given process:
`top -Hp {{process_id}}`
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 12:05:00 +01:00
2016-06-22 19:02:12 +01:00
`top -p $(pgrep -d ',' {{process_name}})`
2016-06-22 12:05:00 +01:00
2016-01-07 17:31:27 +00:00
- Get help about interactive commands:
2015-11-24 13:37:43 +00:00
`?`