• Linux and Me
  • Hungry Penguin
  • Download Linux
KEEP IN TOUCH

Getting to grips with the ‘top’ command [TUTORIAL]

Mar02
2011
2 Comments Written by Hungry Penguin

When ever I am called to perform system administration on a Linux server there are several command line tools I use to familiarise myself with the machine (like df -h to see the disks). And invariably one of the commands I will use early on is the top command.

top displays real-time live view of the running system including system summary information and a list of tasks.

By using top you can quickly establish the following:

1) Is the system overloaded?
2) Is there one particular task which is consuming lots of CPU time?
3) How much memory does the machine have and is it using large amounts of swap space?

Interaction with top is limited but you can do a few useful things like update the refresh frequency (which defaults to every 3 seconds) by pressing s and then entering the number of seconds.

You can also sort the processes according to memory usage by pressing F (note the capital), n and then ESC.

To see a summary of the help press h and to exit top press q.

Posted in Tech - Tagged command line, Linux, tutorial
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
Similar posts
  • The London Olympics and Open Source S... — The 2012 London Olympics promises to be a ...
« Executive director of the Linux Foundation Jim Zemlin talks Linux
» Packt Publishing, the publishers of Learning FreeNAS, have donated over $300,000 to open source projects

2 Comments

  1. man_iii
    April 3, 2011 at 1:41 pm | Permalink

    You can also hit keys ( Shift+, and Shift+. ) to scroll through the other PIDs not listed in the first top screen. No idea if it follows the sort order … but i’m guessing it does.

  2. man_iii
    April 3, 2011 at 1:43 pm | Permalink

    lol when I tried to enter >> \> << \< its not showing the > and < symbols

Leave a Reply Cancel reply

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

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

More Linux

Facebook

Recent Posts

  • Oracle releases VirtualBox 4.1.16
  • First tarball release of the new GNU Portable Threads Library: nPth version 0.90
  • OpenOffice 3.4 Released
  • Jury in deadlocked on copyright issues in Oracle vs Google???
  • Does Android’s open source status make it better in terms of privacy?

Categories

  • Android
  • FreeBSD
  • Linux and me
  • News
  • Tech

Blogroll

  • Hungry Penguin
  • Learn FreeNAS
  • Tech News

Tags

Android Apache ARM Barnes & Noble CentOS command line FreeBSD FreeNAS Google Headless LibreOffice Linux Linux Format Linux Foundation London Olympics National Security Agency Nomodeset NoSQL nPth NSA OOo OpenOffice 3.4 Open Source Oracle Pth Raspberry Pi Threads tutorial Ubuntu VirtualBox VNC Without Monitor

Archives

  • May 2012
  • April 2012
  • January 2012
  • September 2011
  • August 2011
  • March 2011
  • February 2011
  • April 2010
  • March 2010

EvoLve theme by Blogatize  •  Powered by WordPress Linux and Me
The Hungry Penguin Blog