Search code examples
linuxshellunixterminaltop-command

Top unix command ascending order


I am using Ubuntu 12.04 and have recently started working on bash. I need to display say memory or CPU in ascending order.

command : top

shift F, this shows window of all the column. I select n for memory and it is ordered in descending order. Same thing goes with CPU. I am unable to display these in ascending order. I have tried with shift O, O, R, shift R, P.


Solution

  • Using F you'd get you to the menu of fields. Using s would set what field would do the sorting. Press ESC to escape from the menu then to change Ascending/Descending mode, use R.