Name
more
Synopsis
more [options] [files]
Displays the named files on a terminal, one
screenful at a time. See less for an alternative
to more. Some commands can be preceded by a
number.
Options
-
+num Begin displaying at line number num.
-
-num Set screen size to num lines.
-
+/pattern Begin displaying two lines before pattern.
-
-c Repaint screen from top instead of scrolling.
-
-d Display the prompt “Press space to continue, `q’ to quit” in response to illegal commands.
-
-f Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.
-
-l Ignore form-feed (Control-L) characters.
-
-p Page through the file by clearing each window instead of scrolling. This is sometimes faster.
-
-r Force display of control characters, in the form
^x.-
-s Squeeze; display multiple blank lines as one.
-
-u Suppress underline characters.
Commands
All commands in more are based on
vi commands. An argument can precede many
commands.
-
numSPACE Display next screen of text, or num more lines.
-
numz Display next lines of text, and redefine a screenful to num lines. Default is one screenful.
-
numRETURN Display num lines of text, and redefine a screenful to num lines. Default is one line.
-
numd,^D Scroll num lines of text, and redefine scroll size to num lines. Default scroll is eleven lines.
-
q,Q, Quit.
-
nums Skip forward num lines of text.
-
numf Skip forward num screens of text.
-
numb,^B Skip backward num screens of text.
-
' Return to point where previous search began.
-
= Print ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access