Summary of less commands

Commands marked with * may be preceded by a number, N. Notes in parentheses indicate the behavior if N is given.

h  H                 Display a complete command summary
q  :q  :Q  ZZ        Exit.

e  ^E  j  ^N  CR  *  Forward  one line (or N lines).
y  ^Y  k  ^K  ^P  *  Backward one line (or N lines).
f  ^F  ^V  SPACE  *  Forward  one window (or N lines).
b  ^B  ESC-v      *  Backward one window (or N lines).
z                 *  Forward  one window (set window to N).
w                 *  Backward one window (set window to N).
d  ^D             *  Forward  one half-window (set half-window to N).
u  ^U             *  Backward one half-window (set half-window to N).
r  ^R  ^L            Repaint screen.
R                    Repaint screen, discarding buffered input.
/pattern          *  Search forward for (N-th) matching line.
?pattern          *  Search backward for (N-th) matching line.

NOTE: search commands may be modified by one or more of:

   !  search for NON-matching lines.
   *  search multiple files.
   @  start search at first file (for /) or last file (for ?).

[Home] [Search] [Index] This site maintained by guichard@whitman.edu