
lesskey | 243
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
v Not valid for all versions. Invoke editor specified by $VISUAL
or $EDITOR, or vi if neither is set.
! [command]
Not valid for all versions. Invoke $SHELL or sh.Ifcommand
is given, run it and then exit. Special characters:
% Name of current file.
# Name of previous file.
!! Last shell command.
| mark-letter command
Not valid for all versions. Pipe fragment of file (from first line
on screen to mark-letter)tocommand. mark-letter may also
be:
^ Beginning of file.
$ End of file.
., newline
Current screen is piped.
Prompts
The prompt interprets certain sequences specially. Those begin-
ning with % are always evaluated. Those beginning with ? are
evaluated if certain conditions are true. Some prompts determine
the position of particular lines on the screen. These sequences
require that a method of determining that line be specified. See the
-P option and the manpage for more information.
lesskey
lesskey [-o output-file | --output=output-file] [input-file]
Configure keybindings for the less command using a configuration
file. The input file defaults to ~/.lesskey and the output file to ~/.less
unless you specify otherwise.
Configuration file format
The configuration file for lesskey has one to three sections. These
are marked by a line containing a # symbol and the name of the ...