Name
more
Synopsis
more [options] [files]
Display the named files on a terminal, one screenful at a time. See less for an alternative to more.
Options
- +num
Begin displaying at line number num.
- -num number
Set screen size to number lines.
- +/pattern
Search for pattern and begin displaying at that point.
- -c
Repaint screen from top instead of scrolling.
- -d
Display the prompt “[Press space to continue, ‘q’ to quit]” instead of ringing the bell. Also display “[Press ‘h’ for instructions]” 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 (Ctrl-L) characters.
- -p
Page through the file by clearing each window instead of scrolling. This is sometimes faster.
- -s
Squeeze; display multiple blank lines as one.
- -u
Suppress underline characters.
Commands
All commands in more are based on vi commands. You can specify a number before many commands to have them executed multiple times. For instance, 3:p causes more to skip back three files, the same as issuing :p three times. The optional number is indicated by num in the following list:
- SPACE
Display next screen of text.
- z
Display next num lines of text, and redefine a screenful to num lines. Default is one screenful.
- RETURN
Display next num lines of text, and redefine a screenful to num lines. Default is one line.
- d, ^D
Scroll num lines of text, and redefine scroll size to num lines. Default is one line.
- q, Q, INTERRUPT
Quit.
- s
Skip next num lines of text. Default is one line.
- f
Skip ...
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