LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find RAM usage of a user? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-ram-usage-of-a-user-920713/)

decenter 12-27-2011 08:04 AM

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

T3RM1NVT0R 12-27-2011 10:00 AM

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

decenter 12-27-2011 12:39 PM

Quote:

Originally Posted by T3RM1NVT0R (Post 4559354)
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'

T3RM1NVT0R 12-27-2011 12:43 PM

@ 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

T3RM1NVT0R 12-27-2011 12:48 PM

@ 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

Sed_Awk 12-27-2011 01:07 PM

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


All times are GMT -5. The time now is 01:43 AM.