Docs / Monitoring & Logging / How to Install and Use htop

How to Install and Use htop

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 408 views · 1 min read

htop is an interactive process viewer — a better alternative to top.

Install

apt install htop -y

Usage

htop

Key Controls

  • F2 — Setup/configure
  • F3 — Search processes
  • F4 — Filter processes
  • F5 — Tree view
  • F6 — Sort by column
  • F9 — Kill process
  • F10 — Quit

Understanding the Display

  • Top bars: CPU and memory usage per core
  • Process list: PID, user, CPU%, MEM%, command
  • Bottom: shortcuts and totals

Was this article helpful?