2025-03-14 21:59:59 -06:00
|
|
|
# htop
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> Display dynamic real-time information about running processes.
|
|
|
|
|
> An enhanced version of `top`.
|
|
|
|
|
> See also: `top`, `atop`, `glances`, `btop`, `btm`.
|
|
|
|
|
> More information: <https://manned.org/htop>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start `htop`:
|
|
|
|
|
|
|
|
|
|
`htop`
|
|
|
|
|
|
|
|
|
|
- Start `htop` displaying processes owned by a specific user:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`htop {{[-u|--user]}} {{username}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display processes hierarchically in a tree view to show the parent-child relationships:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`htop {{[-t|--tree]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Sort processes by a specified `sort_item` (use `htop --sort help` for available options):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`htop {{[-s|--sort]}} {{sort_item}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start `htop` with the specified delay between updates, in tenths of a second (i.e. 50 = 5 seconds):
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`htop {{[-d|--delay]}} {{50}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Disable all system and process changing features:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`htop --readonly`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- See interactive commands while running `htop`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`{{<F1>|<?>}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Switch to a different tab:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`<Tab>`
|