Watch live CPU and memory usage per process with htop

Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.

LinuxProcessessystemDiagnosticsLow risk
Install htop (e.g. sudo apt install htop) and run htop to browse processes sorted by CPU usage in real time.

01Command

Command
$ htop

02What it does

The top bars show per-core CPU, memory, and swap; the table lists each process with PID, user, CPU%, MEM%, and command. Press F6 to change the sort column (e.g. MEM% to find memory hogs), F4 to filter by name, F9 to send a signal such as SIGTERM to the selected process, and q to quit. Unlike top, htop scrolls horizontally so long commands stay readable, and mouse clicks work in most terminals. It runs fine over SSH and needs no root privileges to observe, only to kill other users' processes.

03Risk

RiskLow risk
Requirementshtop is not always preinstalled: Debian/Ubuntu: sudo apt install htop; Fedora: sudo dnf install htop; Arch: sudo pacman -S htop

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • htop(1) — interactive process viewer
    man7.org · technical · 2026-09-17
    Evidence: The htop man page describes it as an interactive text-mode process viewer that allows scrolling vertically and horizontally, unlike top.
  • htop - an interactive process viewer
    htop.dev · vendor-doc · 2026-09-17
    Evidence: The official htop site describes real-time CPU, memory, and swap meters plus interactive process sorting and killing.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions