Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProcessesCLI Reference

$htop

Interactive process viewer with colorful CPU meters and mouse support.

Syntax DefinitionPOSIX standard
htop [OPTIONS]
Linux Community2.4k Online

Chat with real Linux users, learn new commands & get free cheat sheet PDFs.

Try `htop` Live in Interactive Sandbox

Zero-install client simulation with real-time feedback.

Open in Fullscreen Workspace↗
bash — terminal

Overview & How htop Works

`htop` is a modern, visual alternative to `top`. It offers color-coded visual graphs for each CPU core, memory/swap meters, process tree hierarchies, and shortcut keys for killing or renicing processes.

Common Flags & Command Options

Flag / OptionDescription
-u [user]Display only processes belonging to a given user.
-tShow processes in an interactive tree view hierarchy.

Practical Real-World Examples

Example #1Launch interactive process monitor

Displays the interactive colorful process manager.

Frequently Asked Questions

Why do developers prefer htop over top?

`htop` allows smooth vertical and horizontal scrolling, supports mouse clicks, provides per-core CPU bars, and lets you kill processes without typing PIDs manually.