How to find top memory or CPU consuming process in linux

There are many ways to find this but quick and widely used method will be using top or ps command. Find the top memory consuming process using top command top -o +%MEM | head -n 20 Similarly, if we have to find top CPU consuming process, command will be top -o +%CPU | head -nContinue reading “How to find top memory or CPU consuming process in linux”