Sep 13, 2018

Linux top command - Show Processes Sorted

To Show Processes Sorted by any Top Output Column – Press O  

By default top command displays the processes in the order of CPU usage.  When the top command is running, press M (upper-case) to display processes sorted by memory usage. 

To sort top output by any column, Press O(upper-case O) , which will display all the possible columns that you can sort.