MORE(1) | General Commands Manual | MORE(1) |
more
— view
files
more |
[-ceisu ] [-n
number] [-p
command] [-t
tag] [file ...] |
The more
pager displays text one screenful
at a time. After showing each screenful, it prompts the user for a command.
Most commands scroll the text or move to a different place in the file,
while some switch to another file. If no file is
specified, or if file is a single dash
(‘-
’), the standard input is used.
When showing the last line of a file, more
displays a prompt indicating end of file and the name of the next file to
examine, if any. It then waits for input from the user. Scrolling forward
switches to the next file, or exits if there is none.
The options are as follows:
-c
-e
-i
-n
numbermore
uses the terminal window size.-p
commandmore
commands when a file is
first examined (or re-examined, such as with the
:e
or :p
commands).
Multiple commands have to be concatenated into one single argument. Search
patterns may contain blank characters and can be terminated by newline
characters embedded in the command argument. Any
other blank and newline characters contained in the argument are
interpreted as SPACE
and
RETURN
commands, respectively.-s
-t
tag-u
more
treats
backspaces and CR-LF sequences specially: backspaces which appear adjacent
to an underscore character are displayed as underlined text; backspaces
which appear between two identical characters are displayed as emboldened
text; and CR-LF sequences are compressed to a single linefeed
character.Interactive commands for more
are based on
vi(1). Some commands may be preceded by a
decimal number, called N in the descriptions below. In the following
descriptions, ^X means control-X.
h
SPACE
| f
|
^F
b
|
^B
-n
option). If N is more than the screen size,
only the final screenful is displayed.j
|
RETURN
k
d
|
^D
u
|
^U
g
G
r
|
^L
R
m
'
/
pattern?
pattern/!
pattern?!
patternn
N
:e
[filename]:n
and :p
commands below) from the list of files in the command line is re-examined.
If the filename is a pound sign (#), the previously examined file is
re-examined.:n
:p
:t
v
EDITOR
, or
defaults to vi(1).=
|
^G
more
is reading from the standard input, or the
file is shorter than a single screen, some of these items may not be
available. Note, all of these items reference the first byte of the last
line displayed on the screen.q
|
:q
|
ZZ
more
.COLUMNS
TERM
variable, but may
be overridden by window systems which support
TIOCGWINSZ
.EDITOR
LINES
TIOCGWINSZ
.MORE
more
. The
options should be space-separated and must be prefixed with a dash
(‘-
’).TERM
more
to get
the terminal characteristics necessary to manipulate the screen.The more
utility exits 0 on
success, and >0 if an error occurs.
Examine the ends of all files in the current directory, showing line and byte counts for each:
$ more -p G= *
Examine several manual pages, starting from the options description in the DESCRIPTION section:
$ more -p '/DESCRIPTION > /options > ' *.1
The more
utility is compliant with the
IEEE Std 1003.1-2008 (“POSIX.1”)
specification, though its presence is optional.
Functionality allowing the user to skip (as opposed to scroll) forward is not currently implemented.
A more
command appeared in
3.0BSD. The present implementation is actually
less(1) in disguise.
Mark Nudelman
August 20, 2019 | OpenBSD-current |