Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
more(1) OSS Shell and Utilities Reference Manual
string you set the MORE environment variable to must begin with a - (dash).
If more is reading from a file, rather than a pipe, then a percentage is displayed along with the
filename. This gives the fraction of the file (in characters, not lines) that was displayed so far.
If the standard output is not a terminal, then more processes like cat. The compact viewing for-
mat produced by the -s flag can also be used in this case.
SUBCOMMANDS
The more command provides the following subcommands that you can type when more pauses.
These commands are designed to be similar to the commands supported by the vi editor. (i is an
optional integer argument, defaulting to 1.) Regular expressions (as referred to here) are
described under grep.
i<Return>
ij
i<Ctrl-e>
i<Space>
Scrolls forward i lines. The default i for <Space> is one screenful; for j and <Return>
it is one line. The entire i lines are written, even if i is more than the screen size. At
End-of-File, <Return> causes more to continue with the next file in the list, or exits if
the current file is the last file in the list.
d
i<Ctrl-d>
Scrolls forward i lines, with a default of one-half of the screen size. If i is specified, it
becomes the new default for subsequent d and u subcommands.
iu
i<Ctrl-u>
Scrolls backward i lines, with a default of one-half of the screen size. If i is specified,
it becomes the new default for subsequent d and u subcommands. Note that if your
line kill character is <Ctrl-u>, then you must use the u command to scroll backward.
ik
i<Ctrl-y>
Scrolls backward i lines, with a default of one line. The entire i lines are written, even
if i is more than the screen size.
iz Displays i more lines and sets the new window (screenful) size to i.
ig Goes to line i in the file, with a default of 1 (beginning of file). Scrolls or rewrites the
screen so that that line is at the current position. If i is not specified, then more
displays the last screenful in the file. Instead of exiting (or going on to the next file)
after showing the last line of the file, more displays the filename prompt. This gives
you an opportunity to scroll or page backward through the file.
iG Goes to line i in the file, with a default of the end of the file. If i is not specified, scrolls
or rewrites the screen so that the last line in the file is at the bottom of the screen. If i is
specified, scrolls or rewrites the screen so that that line is at the current position.
is Skips forward i lines, with a default of one line, and writes the next screenful beginning
at that point. If i would cause the current position to be such that less than one screen-
ful would be written, the last screenful in the file is written.
6−22 Hewlett-Packard Company 527188-003