Jacob Tomlinson 6/4/2013

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

Read Original

This article addresses a difference between Linux and OS X command line behavior, specifically the `top` command's default sorting. It provides a step-by-step guide to create a shell alias (`alias top="top -o cpu"`) in the `.profile` file to make CPU usage the default sort order, saving users from typing extra parameters each time. It also mentions the alternative of using `htop`.

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

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes