top command truncates output
Chet Nichols III
chet.nichols at gmail.com
Mon Jul 21 23:47:34 UTC 2008
make your terminal wider? ;)
what are you trying to do, exactly? i would suggest using ps instead of top.
i don't think top will line wrap, meaning, if you want to get the full
command, you'll have to use ps.
since you can use ps to order by process cpu%, etc, and also get the full
command, you might want to try that :D
for example, this will list the cpu utilization and the full command, and
sort by cpu utilization:
$ ps -ax -k pcpu -o pcpu,command
or you can shorten it to:
$ ps axk pcpu o pcpu,command
good luck!
chet
On Mon, Jul 21, 2008 at 6:06 AM, Rav <rav1709 at yahoo.com> wrote:
> Hi all,
>
> I was just executing the linux "top" command. But some of the messages are
> getting truncated as follows.
>
>
> [root at devbsc2 ~]# top -b -c
>
> 3238 root 16 0 9036 3032 1128 S 0.0 0.3 0:00.00 /usr/bin/perl
> /usr/lib/ipaccess/common/wrap --pid=/var/run/ipacc
> 3239 ipacommo 18 0 61988 7136 5924 S 0.0 0.7 0:00.09
> /usr/lib/orbacus/bin/nameserv -ORBconfig /etc/ipaccess/common/or
> 3248 root 16 0 9064 3112 1200 S 0.0 0.3 0:00.00 /usr/bin/perl
> /usr/lib/ipaccess/common/wrap --PID=/var/run/ipacc
>
> Could somebody help me in getting the complete line.
>
> Thank you in advance.
> Your response will be appreciated.
>
> Rgds,
> Rav
>
>
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subjectunsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
--
----------------------------------------
chet nichols III
chet.nichols at gmail.com
aim: chet / twitter: chet
http://chetnichols.org
----------------------------------------
More information about the redhat-list
mailing list