how to show only top 3 processes consunming maximum CPU code example Example: check the linux process top 10 # ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head