A better "top" command for Mac OS X? [closed]

top on MacOS X does support sorting, at least:

    O<skey>        Set secondary sort key to <skey> (see o<key>).
    o<key>         Set primary sort key to <key>: [+-]{command|cpu|pid
                   |prt|reg|rprvt|rshrd|rsize|th|time|uid|username|vprvt
                   |vsize}.

I'm working on porting htop to OSX. The repo is here (more active fork here, and can be installed via brew install htop)

I'm currently trying to work out what to do about the licensing clash between Apple's libtop (APSL) and htop (GPL). There's probably not much more programming to do on it - but I may have to re-implement the bits of libtop I need. If anyone has suggestions on how to make the licensing work please speak up.

enter image description here


htop is now part of macports -- enjoy


Glances - Eye on your system is what you are looking for. I previously used it on Linux, it is cross-platform and is really good.

Here is my screenshot.

enter image description here


There is also a brew for htop if that's how you roll.

Unfortunately, Apple's /usr/bin/top continues to regress, as it no longer even understands compound single char args:

$ top -FR
invalid option or syntax: -FR
[...]

Now you must use e.g. "top -F -R -u". But, hey, Apple's "top" does not sort by cpu by default so perhaps that's the least of its worries.