Last updated on April 14, 2024
Due to its speed and simplicity, GNU less
is probably the most common default terminal pager on various GNU/Linux distributions—you may have probably used it explicitly via the less
command, or implicitly when you execute the man
command or git diff
. Although the default configuration of less
does not really offer much except for a basic text viewer, it is actually much more powerful than most people think. Here a few improvements over the default configuration are offered.
For macOS/OS X users: consider installing a newer version of less
and other GNU command line utilities. To do so, you can follow the instructions here.