Find Top Running Processes by Highest Memory and CPU Usage in Linux

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

12 Responses

  1. Sai krishna says:

    Getting below.

    /root% ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
    ps: unrecognized option `--sort=-%mem'
    BusyBox v1.21.1 (2014-02-13 02:54:33 CET) multi-call binary.
    Usage: ps [-o COL1,COL2=HEADER]
    Show list of processes
    -o COL1,COL2=HEADER	Select columns for display
  2. Salvador Avila says:

    Great!! how can I add the user?, I was trying by -u, or -U but did not work..

  3. JimM says:

    Super info! I just tried it on Mint 18.3 Mate and you don’t need ‘sudo’. Normal user is fine.

  4. Prem says:

    If your server has 5 CPU, then how to interpret your result? 43.5% for ALL 5 CPU, or 43.5% or just one CPU?

  5. linda says:

    I am new for UNIX can you help me for this question please?

    The pointy-haired manager’s good friend in marketing called him and said the system is way to slow today. Mr. Pointy-hair wants you to send him a file ‘right now’ with the top ten CPU using processes.

    Work out a command structure that can be issued to find running processes, sort them by CPU utilization, and return only the top ten CPU utilizing processes to a file called, top_cpu_out.txt.

  6. Shndo says:

    Hi, great information. Thank you!

    How we can add total Time of each process to the list?

    Thank you!

  7. Prasad says:

    Really Cool

  8. Hugo says:

    do you know a similar command for centOS?

  9. Usman Nasir says:

    Was looking for something like this, really liked the -o flag though.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.