How To See Total Processes Are Running, Files Opened, Memory Used By An User?


To see all the process run by a perticular user
#ps -u username u

Example
#ps -u rajesh u

or

To see all the files opened by user
#lsof grep username

Example
#lsof grep rajesh

To see memory used by a perticular user
#ps -u username u awk '{print $2}'

Example
ps -u krishna u awk '{print $2}'

Now you will get all the PID's run by user Krishna. So try to get memory usage by using pmap command.

  • Like the post? Please Subscribe to free RSS feed to get updates
  • Related Posts by Categories



    0 comments:

    Archive

    Translate this page

     

    The Linux Juggernaut | Copyright 2006-2009 Surendra Kumar Anne | Surendra's Home Page | Give us feedback how we are doing, Click here