Name
more
Synopsis
more [options
] [files
]
Displays the named files
on a terminal, one screen 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.
-
num
SPACE Display next screen of text, or
num
more lines.-
num
z Display next lines of text, and redefine a screen to
num
lines. Default is one screen.-
num
RETURN Display
num
lines of text, and redefine a screen tonum
lines. Default is one line.-
num
d, ^D Scroll
num
lines of text, and redefine scroll size tonum
lines. Default scroll is 11 lines.- q, Q,
Quit.
-
num
s Skip forward
num
lines of text.-
num
f Skip forward
num
screens of text.-
num
b, ^B Skip backward
num
screens of text.- '
Return to point where previous search began.
- =
Print number of current line. ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.