Sorting down processes by memory usage
问题 I am able to see the list of all the processes and the memory via ps aux and going through the VSZ and RSS column data. Is there a way to sort down the output of this command by the descending order on RSS value ?. PS : This is a newbie question as I am very much new to Unix/Linux. ubuntu 回答1: RSS is the 6th column, so you can do it as follows: ps aux | sort -k6,6 -rn sort based on column 6 only (the comma on 6,6 makes it, thanks twalberg), numerically and reverse (the biggest number first).