MacOS – htop-on-linux like alternative for top / Activity Monitor on OS X

activity-monitorcommand linemacossoftware-recommendation

I'm looking for a better alternative for top. Both top and Activity Monitor are highly limited with regards to features. In particular, I'm interested in the following features:

  • Limit processes by name
  • Send different kill-signals to a process interactively, i.e. select the process from the process list and send a signal
  • Ability to show the entire command, not only the program name (as top -c does on Linux)
  • Show the status of each process
  • Optional: On Linux, top also updates the command when displayed, i.e. if a process writes in it's own argv during runtime, the updated command will be shown.

Htop is not an option, as it is unstable on Mac OS and only a small subset of it's features actually works on a Darwin system, probably because it partially relies on procfs. Is there a build or fork of htop that works on OS X since it has the features I want if it worked as it does on Linux?

Best Answer

You can install htop on Mac through brew with the following command:

brew install htop-osx

Don' t forget to grant root privileges after the installation.