Re: ps command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux