ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -nr | head -10
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -10
From inside top you can try the following:
- Press SHIFT+f
- Press the Letter corresponding to %MEM
- Press ENTER
ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -nr | head -10
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -10
From inside top you can try the following: