Top 10 CPU intensive process :
ps axh -o cmd,%cpu:20 --sort=-%cpu | head -10
Top 10 Memory intensive process :
ps axh -o cmd,%mem:20 --sort=-%mem | head -10
Scripting is sorcery
Top 10 CPU intensive process :
ps axh -o cmd,%cpu:20 --sort=-%cpu | head -10
Top 10 Memory intensive process :
ps axh -o cmd,%mem:20 --sort=-%mem | head -10