How to list top 10 memory consumed process? | Linux | Linux in Pakistan
Shell Script

How to list top 10 memory consumed process? | Linux

If you want to list top 10 memory consumed process. Below is the simple command to check top 10 memory consumed process.

ps -A –sort -rsz -o pid,comm,pmem | head -10

Command Output

PID COMMAND %CPU
2700 firefox 62.2
1347 Xorg 3.6
2518 compiz 1.4
1214 mongod 0.4
3339 gedit 0.3
2442 pulseaudio 0.1
4826 gnome-terminal 0.1