Command
|
Description
|
Space
|
Scroll forward one screen.
|
d
|
Scroll forward one-half screen.
|
RETURN
|
Scroll forward one line.
|
b
|
Scroll backward one screen. Unlike more, while
less is reading from pipes (Section 1.5), it can
redraw the screen and read previous pages.
|
u
|
Scroll backward one-half screen.
|
y
|
Scroll backward one line.
|
g
|
Go to the beginning of the text (could be slow with large amounts of
text).
|
G
|
Go to the end of the text (could be slow with large amounts of text).
|
/pattern
|
Search forward for pattern, which can be a
regular expression.
|
?pattern
|
Search backward for pattern, which can be
a regular expression.
|
n
|
Search for the next occurance of the last search, in the same
direction: forward in the file if the previous search was using
/ and backwards in the file if the previous search
was using ?.
|
N
|
Search for the previous occurance of the last search. See earlier.
|
h
|
Display a help screen.
|
:n
|
Display next file from command line (two-character command).
|
:p
|
Display previous file from command line (two-character command).
|