htop is an interactive process viewer for Linux that provides a real-time overview of CPU, RAM, and swap usage with a user-friendly interface.

Install htop

sudo apt install htop       # Debian/Ubuntu
sudo dnf install htop       # Fedora/RHEL

Launch htop

htop

Key Shortcuts Inside htop

  • F6 — Sort by column
  • F9 — Kill a process
  • F5 — Tree view
  • F4 — Filter by name

Filter Processes by User

htop -u www-data