Essentially - It shows processes, sorted by highest CPU usage - and also shows memory usage and other data. Much like the 'top' command. Try 'top' first.. then check out this command.. top can end up eating into cpu itself -- and this alternative uses a fraction of it. Doesn't do everything top does - but does show the 'top cpu users'.
Now that I've written that - did you mean - how does it work? That's a different answer :) Scott Rohling On Fri, Jul 22, 2011 at 9:23 AM, Dazzo, Matt <mda...@pch.com> wrote: > For us new to linux can anyone explain what this does? Tks Matt > > -----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/ > > ---------------------------------------------------------------------- > 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/ > ---------------------------------------------------------------------- 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/