filename completion (TAB, ^L)
Less can also be compiled to be permanently in "secure" mode.
COMPATIBILITY WITH MORE
If the environment variable LESS_IS_MORE is set to 1, or if the program is invoked via a file link named "more", less behaves (mostly) in conformance with the POSIX "more" command specification. In this mode, less
behaves differently in these ways:
The -e option works differently. If the -e option is not set, less behaves as if the -e option were set. If the -e option is set, less behaves as if the -E option were set.
The -m option works differently. If the -m option is not set, the medium prompt is used, and it is prefixed with the string "--More--". If the -m option is set, the short prompt is used.
The -n option acts like the -z option. The normal behavior of the -n option is unavailable in this mode.
The parameter to the -p option is taken to be a less command rather than a search pattern.
The LESS environment variable is ignored, and the MORE environment variable is used in its place.
ENVIRONMENT VARIABLES
Environment variables may be specified either in the system environment as usual, or in a lesskey(1) file. If environment variables are defined in more than one place, variables defined in a local lesskey file take
precedence over variables defined in the system environment, which take precedence over variables defined in the system‐wide lesskey file.
COLUMNS
Sets the number of columns on the screen. Takes precedence over the number of columns specified by the TERM variable. (But if you have a windowing system which supports TIOCGWINSZ or WIOCGETD, the window sys‐
tem’s idea of the screen size takes precedence over the LINES and COLUMNS environment variables.)
EDITOR The name of the editor (used for the v command).
HOME Name of the user’s home directory (used to find a lesskey file on Unix and OS/2 systems).
HOMEDRIVE, HOMEPATH
Concatenation of the HOMEDRIVE and HOMEPATH environment variables is the name of the user’s home directory if the HOME variable is not set (only in the Windows version).
INIT Name of the user’s init directory (used to find a lesskey file on OS/2 systems).
LANG Language for determining the character set.
LC_CTYPE
Language for determining the character set.
LESS Options which are passed to less automatically.
LESSANSIENDCHARS
Characters which may end an ANSI color escape sequence (default "m").
LESSANSIMIDCHARS
Characters which may appear between the ESC character and the end character in an ANSI color escape sequence (default "0123456789:;[?!"’#%()*+ ".
LESSBINFMT
Format for displaying non‐printable, non‐control characters.
LESSCHARDEF
Defines a character set.
LESSCHARSET
Selects a predefined character set.
LESSCLOSE
Command line to invoke the (optional) input‐postprocessor.
LESSECHO
Name of the lessecho program (default "lessecho"). The lessecho program is needed to expand metacharacters, such as * and ?, in filenames on Unix systems.
LESSEDIT
Editor prototype string (used for the v command). See discussion under PROMPTS.
LESSGLOBALTAGS
Name of the command used by the -t option to find global tags. Normally should be set to "global" if your system has the global(1) command. If not set, global tags are not used.
LESSHISTFILE
Name of the history file used to remember search commands