LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-27-2011, 09:04 AM   #1
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Rep: Reputation: 19
How to find RAM usage of a user?


Hey,

I would like to know how to find RAM usage of each user? Any specific commands for that?

Thanks
 
Old 12-27-2011, 11:00 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi decenter,

You can use the following command to find the RAM usage by a particular user:

Code:
top -M -u username
The above command will show the CPU and Memory usage by a particular user.
 
Old 12-27-2011, 01:39 PM   #3
decenter
Member
 
Registered: Sep 2011
Distribution: Fedora release 21 (Twenty One)
Posts: 156

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi decenter,

You can use the following command to find the RAM usage by a particular user:

Code:
top -M -u username
The above command will show the CPU and Memory usage by a particular user.

But it returns error:

top: unknown argument 'M'
 
Old 12-27-2011, 01:43 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Which distro are you using. It works on my CentOS system without any error message. Are you sure you are using as -M. The command is:

Code:
top -M -u username
 
Old 12-27-2011, 01:48 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Just noticed that it doesn't work on my Ubuntu machine. You can run the following command in Ubuntu to get the desired info:

Code:
top | grep username
 
Old 12-27-2011, 02:07 PM   #6
Sed_Awk
Member
 
Registered: Dec 2011
Location: USA
Distribution: Crux 2.7.1
Posts: 41

Rep: Reputation: 0
How to find RAM utilization by user in Linux
http://www.linuxnix.com/2011/05/find...ser-linux.html
 
  


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
How to set permissions fro RAM usage per user in SUSE 10? sky rulz Linux - Networking 1 08-30-2008 07:02 AM
Too Much of RAM Usage !! asneed_jas Linux - Newbie 4 05-12-2007 06:28 AM
RAM usage Deelk Linux - General 11 03-27-2006 04:03 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
find disk usage per user on a filesystem kebabhead Linux - General 4 08-06-2004 06:07 PM


All times are GMT -5. The time now is 07:52 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