When to use htop
Use htop for an interactive view of resource use and process relationships. Inspect the identity and command before taking actions: a busy process may be doing expected work rather than causing a fault.
Syntax
htop [PARAMETERS]Square brackets mark optional arguments; an ellipsis means repetition. Replace example file names, user names and server addresses with your own values.
Common options and arguments
Usage examples
Open monitor
htopThe live process viewer opens and refreshes interactively.
Observe your processes
htop -u "$USER"The display is restricted to processes owned by the current user.
View tree
htop -tA tree view makes parent and child relationships easier to inspect.
Notes and limitations
- htop is usually installed as a separate package. Available features vary by version.
- Before terminating a process, verify its PID and purpose.
Common questions and troubleshooting
Why is htop unavailable on a minimal server?
It is an optional package on many distributions. Use top or ps if installing extra packages is not appropriate.
Does killing the largest process solve memory pressure?
Not necessarily. Check workload, service ownership and memory accounting before interruption; a supervisor may restart the process immediately.
Further help
Options vary by version and distribution. Check the installed documentation with this command: man htop.