Red Hat Customer Portal

Skip to main content

Why does "less" indicate weird lines such as unexpected line feeds or missing contents when browsing a file line per line?

Solution Verified - Updated -

Issue

When browsing a file with "less", long lines may not be displayed in their entirety when scrolling forward line per line due to a known bug (bug #509553) introduced in the version of "less" which ships with Red Hat Enterprise Linux 5.4.

Part of the content of the file can be missing and random portions of the lines displayed in place, causing the original text to be unreadable.

For example:

less gpl.txt

Environment

Red Hat Enterprise Linux 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In