Install htop on Mac OS X

UPDATE: Use this method to Install HTOP on Mac OS X instead. Much better.

If you’re a nerd (and you know you are), then you’ve used ‘top’ for monitoring your system:

Which is cool and nerdy enough. But htop is even nerdier. Linux nerds know this, which is why apt-get install htop is one of our first commands on a fresh install. It’s great for monitoring your webservers and other linux boxes.

Here’s server running htop:

But this command isn’t part of Mac OS X.

Sure, you can follow the various tutorials out there, to install git, then grab the htop source code and install it yourself. Or you can be a lazy nerd and grab the binary that I’ve compiled and install it.

Copy and paste the following commands into a terminal window:

curl -O
sudo mv htop /bin

You will need to enter your password for the ‘sudo’ line above.

Then you can run it from the terminal anywhere by just typing htop.

(I followed the tutorial at to compile)

  • jasonofcompsci

    Hmm, install htop downloaded from a word press blog. I’m almost certain the author really means nothing bad by it but wow, what a bad practice.

  • Mohan

    Installed and working fine in mac yosemite. Do we have any command line options to store the output (statistic) in a file for reference and analysis. I.e like nmon on Linux

  • Micheal Bue

    brew install htop-osx

    worked better on my yosemite

  • On my Yosemite it aliased it automagically for me:

    Did you get an error when you tried with just brew install htop?

  • Micheal Bue

    I meant “it worked better than the solution mentionned by the article” When I tried to download and use the pre-compiled bin provided by the article I got the no-data problem mentionned by other people”.

    As far as I can remember I tried `brew install htop` few weeks ago but with no sucess.

    `brew install htop-osx` worked fine today.

    After your message I tried

    $ brew install htop
    Warning: htop-osx- already installed

    So I guess it aliasses it fine

    I must have done something wrong the first time

  • Alex

    thanks a lot!

  • Cezar Vinícius

    Thanks man. It works fine! Great work 🙂

  • Brian Murdock

    On El Crapitan I had to use: brew install htop
    You are no longer able to do ANYTHING to the /bin directory, even with sudo

  • MiG

    You’re right. Home-brew is definitely the way to do it.