- Finding the top 20 processing in consuming the RAM.
$ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20This command will list the top 20 process in decreasing order of their RAM consumption. It will be more helpful if you add a alias this command. Another solution for it is htop.
Install htop. For Fedora/RedHat users.
$yum install htopFor Ubuntu users.
$sudo apt-get install htopFor sorting the processes run htop & type
M for RAM
P for CPU
T for TIME
To invert the processes type I.