LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2010, 01:43 AM   #1
rl5
Member
 
Registered: Nov 2003
Location: Beautiful Northern California
Distribution: Debian Wheezy x64 3.2.0-3-rt, Fuduntu 2012 testing, The Distro Formerly Known As Mandrake
Posts: 95

Rep: Reputation: 18
Question System performance command


Is there a terminal command to monitor CPU and/or RAM usage?
 
Old 06-03-2010, 01:52 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Have a look at the 'top' command.
Code:
man top
It will show you lots of information.

Kind regards,

Eric
 
1 members found this post helpful.
Old 06-03-2010, 03:03 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

If installed and set up: sar

Hope this helps.
 
Old 06-03-2010, 08:56 PM   #4
rl5
Member
 
Registered: Nov 2003
Location: Beautiful Northern California
Distribution: Debian Wheezy x64 3.2.0-3-rt, Fuduntu 2012 testing, The Distro Formerly Known As Mandrake
Posts: 95

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by EricTRA View Post
Hello,

Have a look at the 'top' command.
That's what I was looking for - thanks!
 
Old 06-03-2010, 09:04 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
In which case you might enjoy htop more.
 
1 members found this post helpful.
Old 06-03-2010, 10:12 PM   #6
myposts
Member
 
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21
Thre are few...

top
sar
vmstat
iostat
netstat

see Evi Nemeth's book or "Learn Linux" dvds. The commands like that are well explained there. See man for each, so you could figure out what they do...

I hope it helps...
 
Old 06-04-2010, 05:37 AM   #7
sica07
Member
 
Registered: May 2008
Distribution: Arch
Posts: 47
Blog Entries: 3

Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
In which case you might enjoy htop more.
I agree with syg00. Have a look at htop. For example:
-in 'htop' you can scroll the list vertically and horizontally to see all processes and complete command lines.
-in 'top' you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
-'htop' starts faster ('top' seems to collect data for a while before displaying anything).
-in 'htop' you don't need to type the process number to kill a process, in 'top' you do.
-in 'htop' you don't need to type the process number or the priority value to renice a process, in 'top' you do.
-'htop' supports mouse operation, 'top' doesn't
-'top' is older, hence, more used and tested.
for more informations see http://htop.sourceforge.net/index.php?page=main
 
1 members found this post helpful.
Old 06-06-2010, 06:35 AM   #8
rl5
Member
 
Registered: Nov 2003
Location: Beautiful Northern California
Distribution: Debian Wheezy x64 3.2.0-3-rt, Fuduntu 2012 testing, The Distro Formerly Known As Mandrake
Posts: 95

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by syg00 View Post
In which case you might enjoy htop more.
Yes, htop is very cool. Thanks for the tip!
 
Old 06-06-2010, 07:11 AM   #9
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Thumbs up htop

I use htop for this purposes and it's an awesome program.

Code:
$ htop -d 5
for quicker updates.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system performance mario.almeida Linux - Server 9 07-13-2009 09:14 AM
help:Linux command to monitor the OS performance rajesht Linux - General 3 05-18-2005 02:15 AM
performance on an OLD system Trazzt Linux - General 7 08-31-2004 10:30 AM
System Performance kojiroh General 0 10-09-2003 04:01 AM
System Performance? WeNdeL Linux - General 1 10-07-2003 11:16 AM


All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration