Andrew Fletcher published: 22 June 2021 2 minutes read
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 Fletcher
•
16 Jan 2025
get IP address from terminal OSX
When troubleshooting network issues or configuring devices, knowing your IP address can be essential. Whether you're connected via Wi-Fi, Ethernet, or tethering through a mobile provider, macOS offers powerful built-in tools to quickly identify your IP address. Here's a practical guide tailored to...
Andrew Fletcher
•
07 Jan 2025
Managing DDEV environment troubleshooting and setting up multiple Drupal projects
DDEV has become a popular tool for local web development, offering a streamlined approach to managing Docker-based environments. However, setting up and managing DDEV projects, particularly with the latest versions of Docker Desktop, can present challenges. This article guides you through resolving...
Andrew Fletcher
•
28 Dec 2024
Optimising file transfers by improving efficiency from cp to rsync
Transferring files between development and production environments is a critical task in the deployment process. However, I continue to come across multiple approaches that scale from awesome automation using pipelines to the basic of direct command line entry. Where the basic approaches rely on...