annoying truncation @ 80th column with less

Matthias Benkmann matthias at
Fri Mar 1 02:54:39 PST 2002

On Fri, 1 Mar 2002 05:12:32 +0100 (MET) Peter Schütze <pschuetze at>

> Hi there,
> just having some small problems here with the output of the less command
> that some of you may have allready come across.
> when piping something into less with more than 80 columns per line (like
> `ps aux` usually should have) inside a xterm window 
> which is a lot wider, then those lines are all truncated after the 80th
> char... :(

If you redirect output to less, then there is no connection between ps and
the terminal, so ps defaults to the standard with 80. Use

ps --cols $COLUMNS <whatever switches you want>

to make ps take the width from $COLUMNS (which is set properly by bash)

Indecision is the key to flexibility.

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list