# htop

> Cross-platform interactive process viewer with real-time system monitoring and process management

Stars: 8.4k · Language: C · License: GPL-2.0 · Categories: System

- Repository: https://github.com/htop-dev/htop
- Website: https://htop.dev/
- Page: https://www.trmn.sh/tools/htop

## Install

- Homebrew: `brew install ncurses automake autoconf gcc`
- APT: `sudo apt install libncursesw5-dev autotools-dev autoconf automake build-essential`
- DNF: `sudo dnf install ncurses-devel automake autoconf gcc`

## Overview

htop is an interactive process viewer that provides real-time monitoring of system processes and resource usage. It displays scrollable lists of running processes with detailed information including CPU and memory consumption, full command lines, and system-wide statistics like load average and swap usage. Users can navigate through processes vertically and horizontally to view complete process information.

The tool offers extensive interactive capabilities for process management without requiring PIDs. Users can kill processes, change process priorities (renicing), search and filter processes, toggle tree view, and sort by different columns. The interface is fully configurable through a graphical setup menu, allowing customization of displayed information and visual layout.

htop is built with ncurses libraries and requires minimal runtime dependencies, making it lightweight and widely compatible across Unix-like systems. It includes optional features like hardware sensor monitoring, CPU affinity control, and Linux-specific capabilities support. The tool supports various build configurations for different platforms including Linux, BSD systems, and macOS, with optional integrations for Performance Co-Pilot, systemd, and hardware monitoring libraries.

### Installation

```bash
# via Homebrew
brew install ncurses automake autoconf gcc
```

```bash
# via APT
sudo apt install libncursesw5-dev autotools-dev autoconf automake build-essential
```

```bash
# via DNF
sudo dnf install ncurses-devel automake autoconf gcc
```

![htop interface screenshot](https://media.trmn.sh/cached/1b79b782ee7fc99314066686b808d44b3b3983138225932f97f1bd49095596df.png)

## Alternatives

- [CAVA](https://www.trmn.sh/tools/cava.md): Cross-platform bar spectrum audio visualizer for the terminal or SDL desktop window, with PipeWire, PulseAudio, ALSA, JACK and other input backends. (C, 6.5k stars)
- [cmus](https://www.trmn.sh/tools/cmus.md): Console music player for Unix-like systems with ncurses interface and optional input/output plugins for many audio formats and backends. (C, 6.3k stars)
- [nvtop](https://www.trmn.sh/tools/nvtop.md): htop-like GPU and accelerator task monitor supporting NVIDIA, AMD, Intel, Apple, and other vendors (C, 11.1k stars)
- [GoAccess](https://www.trmn.sh/tools/goaccess.md): Real-time web server log analyzer written in C that shows HTTP statistics in a terminal or a live HTML dashboard, with JSON and CSV export. (C, 21.1k stars)
- [fastfetch](https://www.trmn.sh/tools/fastfetch.md): System information tool that displays hardware and OS details with customizable ASCII art logos and module configuration (C, 25.2k stars)

## Guides

- [Modern Replacements for top](https://www.trmn.sh/replace/top): Replace top with htop, btop, or bottom: process lists, graphs, and tree views compared, plus Glances for stdout and API export.
- [Best Terminal System Monitors](https://www.trmn.sh/best/system-monitors): Compare btop, htop, bottom, glances and zenith: terminal system monitors for CPU, memory, disk, network and processes.

---

Canonical: https://www.trmn.sh/tools/htop
