Jacob Tomlinson's profile picture Jacob Tomlinson
Home Blog Talks About

#top
Tag

  • Sort top command by cpu usage and set to default in OS X

    2 minute read #alias, #bash, #os-x, #terminal, #top

    As I come from a linux background but seem to spend more and more of my free time using OS X I keep noticing little differences in the way the command line works on a mac. One difference which as been bugging me recently is that way that the top command orders itself. I’m used to having it ordered by highest processor usage at the top on linux, which I find the most useful as generally when I run top I’m looking to see what is chewing up my cpu. However when you run top in OS X it orders by pid, so the newest processes are at the top.