ps command
Robin Laing
Robin.Laing at drdc-rddc.gc.ca
Wed Aug 23 15:40:54 UTC 2006
Kaushal Shriyan wrote:
> Hi
>
> i am trying to find the solution for find users cpu and mem unable to
> find it.
> as per the command it is unable to sort by cpu.
>
> ps ww -e --sort -rss o user,pid,pmem,command,rss,size,vsz|head -20
> this will sort by user it will show nobody user
>
> ps ww -e --sort -rss o cpu,pid,pmem,command,rss,size,vsz|head -20
> this will not sort by cpu.
>
> If i know the user name for example abc.com is domain name using abc is
> username
> if i would like to find only how much cpu and mem is used for abc how to
> find?
> ps will not help
>
>
> ps -u nobody
> no use
> i think following command will help i dont know how to use
>
> top -hv | -bcisS -d delay -n iterations [-u nobody | -U nobody] -p pid
> [,pid]
>
> Thank you,
>
> Kaushal
>
I know that this isn't the full answer you are looking for but...
man ps
There are some great examples in there.
Try the different flags. If you want all users at first, then the 'ux'
flags.
I use ps aux when checking processes. At least I get a list of all
processes and users.
I have found that mixing flags has some strange effects at times.
--
Robin Laing
More information about the fedora-list
mailing list