FG

Let less work like cat, if only one screen full of text

Fresh3 days ago
Mar 15, 20261635 views
Confidence Score0%
0%

Problem

On my Debian machine here, always opens the alternate screen to show stuff. This is annoying, if there are only 2 or 3 lines to be displayed. I'd like to: work as pager, if there is more than a screenful of information and work like , if there's not. Apparently, has the flag for "single screen" cas…

Error Output

less

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Let less work like cat, if only one screen full of text

Low Risk

You can combine with , which disables the terminfo initialization sequence. This has the (dis)advantage that does not clear displayed text on exit, no matter how long the file was.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment