htop Linux Command
Enhanced, more user-friendly version of top with color and mouse support.
What does htop do?
Enhanced, more user-friendly version of top with color and mouse support.
Syntax
htopPractical example
htopQuestions about htop
How do I quit htop?
Press `F10` or `q` to quit htop. You can also press `Ctrl+C` or use the mouse to click the Quit button.
How do I kill a process in htop?
Navigate to the process with arrow keys and press `F9` or `k` to send a kill signal. You can choose the signal number from a menu.
How do I sort processes in htop?
Press `F6` or `< >` to select a sort column. Default is CPU usage. Press `Shift+P` for CPU, `Shift+M` for memory, `Shift+T` for time.
How do I filter processes in htop?
Press `F3` or `/` to search for processes by name. Press `F4` or `` to filter (show only matching processes).
How do I see a process tree in htop?
Press `F5` or `t` to toggle tree view. This shows parent-child relationships between processes in an indented tree format.
How do I change the tree view in htop?
Press `F5` to toggle tree view on/off. In tree view, processes are displayed hierarchically showing parent-child relationships.
What is the difference between htop and top?
htop has color, mouse support, easier navigation, and a more intuitive interface. top is pre-installed on most systems; htop may need to be installed.
How do I install htop?
On Debian/Ubuntu: `sudo apt install htop`. On RHEL/CentOS: `sudo yum install htop`. On Arch: `sudo pacman -S htop`.
Related Process Commands
topDisplays an interactive, real-time view of system processes and resource usage.
killSends a signal to terminate a process by its PID.
psReports a snapshot of current running processes with their PIDs.
killallKills all processes matching a given name.
pgrepSearches for processes by name and returns their PIDs.
pkillSends a signal to processes based on name and other attributes.