Skip to main content

I prefer htop over top on my Linux server.  Running a Solr index got me thinking how can I install htop on macOS Big Sur 11.4 based MacBook pro?

If you don't already know htop is comparable to the top command, but it has additional options.  The htop allows you to scroll vertically and horizontally, so you can see all the processes running on the system.  You can get command lines and args. Common tasks related to processes (killing, renicing) done without entering their PIDs. This page explains how to install htop on macOS or mac os x using the CLI.

 

How to install htop on macOS Unix desktop

You can install htop using the brew command and the procedure is as follows.

Open the Terminal app (Applications/Utilities) on mac OS

brew install htop

Start htop at the bash shell on the Mac OS or computer

 

When you run the brew install htop, you will see an output something similar to:

==> Installing dependencies for htop: ncurses
==> Installing htop dependency: ncurses
==> Pouring ncurses--6.2.big_sur.bottle.tar.gz
🍺  /usr/local/Cellar/ncurses/6.2: 3,913 files, 8.9MB
==> Installing htop
==> Pouring htop--3.0.5.big_sur.bottle.tar.gz
==> Caveats
htop requires root privileges to correctly display all running processes,
so you will need to run `sudo htop`.
You should be certain that you trust any software you grant root privileges.
==> Summary
🍺  /usr/local/Cellar/htop/3.0.5: 12 files, 269.3KB
==> Caveats
==> htop
htop requires root privileges to correctly display all running processes,
so you will need to run `sudo htop`.
You should be certain that you trust any software you grant root privileges.

Staying in Terminal, run the command

htop

Related articles

Andrew Fletcher18 Mar 2024
Resolving CVE-2022-48624 less issue
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial to understand that the issue lies within the "less" package, not Nginx itself. The vulnerability affects "less" before version 606, where close_altfile in filename.c in less omits shell_quote calls for LESSCLOSE,...
Andrew Fletcher12 Mar 2024
How to determine the size of a directory in Terminal
To determine the size of a directory using the terminal, you can use the du (disk usage) command. The syntax for this command can vary slightly depending on the operating system you are using, but a common way to use it is as follows: For Linux and macOSdu -sh /path/to/directoryduDisk...