SDB:'less' Wraps Long Lines

Şuraya atla: kullan, ara


Version: 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"

<keyword>less,wordwrap</keyword>