Home > Archive > Linux/Unix > October 2002 > Rediculous question...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rediculous question...
rlrouns

2002-10-30, 8:10 am

How do you determine CPU usage of a particular application from the command line...
I was thinking ps, but not sure what switch... is it possibly in the /proc directory?

Thanks for the help!

Rob
Supertech

2002-10-30, 8:34 am

By default, ps lists only your own processes.

Under BSD UNIX, the command is ps -aux, which produces a table of all processes, arranged in order of decreasing CPU usage at the time the ps command was executed It is also useful to pipe this output to head, which will display the most active processes.
rlrouns

2002-10-30, 8:38 am

Thanks! I tried that command and it works. I just used also the top command and it displays a nice table with all the processes and CPU usage... I dont know where my brain went!

Rob
dickrwh

2002-10-30, 8:39 am

ps aux
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net