Name
more
Synopsis
more [options] [files]
Description
Display 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 number
Set screen size to number lines.
- +/ pattern
Begin displaying two lines before pattern.
- -c
Repaint screen from top instead of scrolling.
- -d
Display the prompt “Hit space to continue, Del to abort” in response to illegal commands; disable bell.
- -f
Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.
- -l
Ignore form-feed (Ctrl-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.
- SPACE
Display next screen of text.
- z
Display next lines of text, and redefine a screenful to lines lines. Default is one screenful.
- RETURN
Display next lines of text, and redefine a screenful to lines lines. Default is one line.
- d, ^D
Scroll lines of text, and redefine scroll size to lines lines. Default is one line.
- q, Q, INTERRUPT
Quit.
- s
Skip forward one line of text.
- f
Skip forward one screen of text.
- b, ^B
Skip backward one screen of text.
- '
Return to point where previous search began.
- =
Print number of current line.
- /
Get Linux in a Nutshell, Third Edition 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.