For us new to linux can anyone explain what this does? Tks Matt
>
>   top gives the processes running on the CPU along with such info as who is
the user, and the very important  %CPU usage, and it refreshes/updates every
few seconds.  It's a really good tool for checking on performance slowdowns,
etc.

  But, on many systems, one needs root to run it, e.g.  sudo top

  So this alternative does much of the same, but doesn't need root
privileges.
The core of it is the   ps aux  command - try it out - probably via   ps aux
| more
(actually I use "less" as being more capable than "more" but some systems
don't have "less)

and then the rest is presentation - and the    watch   is to repeat it.

--henry schaffer

-----Original Message-----
> From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of
> Scott Rohling
> Sent: Thursday, July 21, 2011 12:39 PM
> To: LINUX-390@VM.MARIST.EDU
> Subject: Poor man's top
>
> I found this buried in some notes..   thought others might enjoy it.   Much
> less overhead then top.. :
>
> watch -n 10 -d 'ps aux --sort -%cpu | cut -c1-0 | head -20'
>
> Scott Rohling
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to