12 TOP Command Examples in Linux

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.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

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...

78 Responses

  1. Khim says:

    Nice article, but how to search and see specific process memory and CPU utilization?

  2. Rupesh Kolatwar says:

    very nice Article…!!!

  3. Jai says:

    basically I want this output to a file.. for 10 mins..

    top – 13:29:09 up 1 day, 20:30, 1 user, load average: 0.65, 0.70, 0.69
    Tasks: 1022 total, 1 running, 1020 sleeping, 0 stopped, 1 zombie
    %Cpu0 : 13.0 us, 2.7 sy, 0.0 ni, 84.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    %Cpu1 : 49.3 us, 3.6 sy, 0.0 ni, 45.7 id, 0.3 wa, 0.3 hi, 0.0 si, 0.7 st
    %Cpu2 : 2.0 us, 2.0 sy, 0.0 ni, 95.4 id, 0.0 wa, 0.3 hi, 0.3 si, 0.0 st
    %Cpu3 : 7.6 us, 2.0 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    %Cpu4 : 1.3 us, 2.3 sy, 0.0 ni, 96.0 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
    %Cpu5 : 26.1 us, 2.6 sy, 0.0 ni, 70.3 id, 0.3 wa, 0.3 hi, 0.0 si, 0.3 st
    KiB Mem : 41042384 total, 1621820 free, 6024132 used, 33396432 buff/cache
    KiB Swap: 21946356 total, 21946308 free, 48 used. 9811332 avail Mem

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    34389 root 20 0 967380 57812 8156 S 91.7 0.1 243:41.66 java
    4295 oracle 20 0 4517788 497680 9364 S 0.0 1.2 4:15.28 java

  4. Jai says:

    Hi All, is there a way to get top output for a given command only listing all CPU info also and write to a file..

Leave a Reply to sarvesh Cancel reply

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.