Re: top command truncates output

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

 



Rav,

`ps' command gives you cumultive CPU time since process startup. You want the
delta between two samplings. `top' is the ideal command for this unless you
want to roll your own. By "truncate the output", do you mean you want to see a
more complete command line? Pass -c to top. In fact, I always type `top -c'
while others just type `top'. In order to record the output to a file, run it
in batch mode with -b. To get a longer line size, set COLUMNS environment
variable. In my Oracle-Linux Perfmon
(http://yong321.freeshell.org/computer/Perfmon.html), I use this command:
COLUMNS=132 top -cb

132 is the total line size, not just the command part.

Yong Huang

> Hi,I would agree that I can use ps command to get 
> the cpu utilization of various process.
> But ps command gives me the average cpu utilization.
> I want realtime cput utiliztion of the processes.
> Any other way to get the realtime cpu utilization
> other than using top.Top is truncating the output 
> as I mentioned in the mail.
> Thanks,Rav


      

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux