"less" Wraps Long Lines

Support knowledgebase (fhassel_less)
Applies to

SuSE Linux: Versions since 8.0

Symptom

less wraps long lines.

Cause

With SuSE Linux 8.0, the relevant parameters have been changed and you no longer have to guess if more is displayed beyond the screen. Long lines will be wrapped.

Solution

To change the settings so less does not wrap long lines, as in previous SuSE Linux versions, insert the following parameter in the .profile file in your home directory:

export LESS="-M -I -S"

To change the parameter system-wide (for all users), edit the file /etc/profile as follows. Change the line

LESS="-M -I"

to

LESS="-M -I -S"


Keywords: LESS, WORD WRAP

Categories: Applications

SDB-fhassel_less, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 17. Apr 2002
SuSE Linux AG - Last generated: 07. Mai 2002 by glazzar (sdb_gen 1.40.0)