Show the N top processes consuming resources on your system

Show the N top processes consuming resources on your system

ps -eo user,pcpu,pid,cmd | sort -r -k2 | head -[N]

replace [N] with the count of processes you want to show