Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 51
    On Linux, > and < move the sort column right and left. Since the %MEM column is just right of the %CPU column, which is also the default sort column, it takes only one keystroke to switch between the two. I know, your question has the macintosh tag, that's why I'm writing this answer as a comment. Commented Sep 19, 2015 at 18:37
  • 18
    I prefer htop, mainly because it tells me how to do this. Commented Jan 19, 2016 at 22:05
  • 5
    If using htop, in addition to shift + M, you will likely want to turn off the display of threads and just show the main process memory consumption with shift + H. See unix.stackexchange.com/a/10403/27902. Commented May 11, 2022 at 0:10
  • 1
    Let me guess, your computer ran out of memory and you can't even run top :P Commented May 7 at 13:28