top cpu consuming processes linux code example Example: linux list top cpu processes ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head