System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

list all processes using more than 5 percent cpu

 
SOLVED
Go to solution
'chris'
Super Advisor

list all processes using more than 5 percent cpu

hi

Howto list all processes using more than 5 % cpu?
4 REPLIES
Michael Leu
Honored Contributor
Solution

Re: list all processes using more than 5 percent cpu

ps -eo pid,%cpu,cmd | awk '{ if($2 > 5) { print $0 }}'
'chris'
Super Advisor

Re: list all processes using more than 5 percent cpu

Thx a lot!
Michal Kapalka (mikap)
Honored Contributor

Re: list all processes using more than 5 percent cpu

hi,

check this article :

"Show All Running Processes in Linux"

http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/

mikap
Steven E. Protter
Exalted Contributor

Re: list all processes using more than 5 percent cpu

Shalom,

I know its not quite on target.

http://www.hpux.ws/?p=8

That script shows top memory users. It is a trivial change to show top cpu users. It may be commented and embedded in the script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com