[lug] ps command

Nate Duehr nate at natetech.com
Thu Feb 15 21:41:34 MST 2001


Or multiple -w flags...

ps -auxwwww

Extra w's make the output even "wider".

On Wed, Feb 14, 2001 at 03:31:04PM -0600, charles at lunarmedia.net wrote:
> try adding a "w" flag.
> 
> -cjm
> 
> 
> On Wed, 14 Feb 2001, Thurston, Jason wrote:
> 
> > Why does the stdout of "ps" get truncated to 80 characters when I pipe or
> > redirect it.
> >
> > example of truncated listing:
> > ps -ef | grep csurvey
> > csurvey  29502 29500  0 Feb13 ?        00:00:00 /bin/sh -c
> > /usr/local/jdk1.2.2/b
> > csurvey  29503 29502  0 Feb13 ?        00:00:00
> > /usr/local/jdk1.2.2/bin/i386/gre
> >
> > however, if I use:
> >
> > ps -ef >/tmp/test.txt    #will truncate after the 80 char the output to the
> > test.txt file.
> >
> > ps -ef                         #will not truncate, but can't grep on
> > anything after the 80th character.
> >
> >
> >
> > Thanks,
> > Jason
> >
> >
> >
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.



More information about the LUG mailing list