Skip to content

htop

The top replacement that is on every machine — still the fastest way to find and kill a process.

Homebrew formula

What it does

htop lists processes with per-core meters, sortable columns, a tree view, incremental search, and signal sending from a menu rather than by typing a PID. Compared to btop it is plainer, starts instantly, and is available on essentially every Unix system in existence.

htop
htop -u $USER        # only your processes
htop -t             # start in tree mode
# F4 filter · F5 tree · F6 sort · F9 kill

Notes

On macOS some columns are less useful than on Linux — the kernel exposes different accounting — and it cannot see other users’ processes without sudo. Worth having even with btop installed: it is the lowest-common-denominator tool, present on almost any Unix box you will ever SSH into, and the muscle memory is universal.

Alternative to

AlternativeTypeTrade-off
btopOpen sourceMuch better looking, with graphs and mouse support
topBuilt inAlways present, no install, unpleasant to read
procsOpen sourceA modern ps replacement rather than an interactive monitor

Install

brew install htop

Links

This post is licensed under CC BY 4.0 by the author.
Last updated on