HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)

m
more(1) more(1)
If the standard output is not a terminal device,
more always exits when it reaches end-of-file on the last
file in its argument list. Otherwise, for all files but the last,
more prompts, with an indication that it has
reached the end of file, along with the name of the next file. For the last file specified, or for the standard
input if no file is specified,
more prompts, indicating end-fo-file, and accept additional commands. If the
next command specifies forward scrolling,
more
will exit. If the -e option is specified, more will exit
immediately after writing the last line of the last file.
more uses the environment variable MORE to preset any flags desired. The
MORE variable thus sets a
string containing flags and arguments, preceded with hyphens and blank-character-separated as on the
command line. Any command-line flags or arguments are processed after those in the
MORE variable, as
if the command line were as follows:
more $MORE flags arguments
For example, to view files using the
-c mode of operation, the shell command sequence
MORE=’-c’ ; export MORE
or the csh command
setenv MORE -c
causes all invocations of more, including invocations by programs such as man and msgs, to use this
mode. The command sequence that sets up the MORE environment variable is usually placed in the
.profile or .cshrc file.
In the following descriptions, the current position refers to two things:
the position of the current line on the screen
the line number (in the file) of the current line on the screen
The line on the screen corresponding to the current position is the third line on the screen. If this is not
possible (there are fewer than three lines to display or this is the first page of the file, or it is the last page
of the file), then the current position is either the first or last line on the screen.
Other sequences that can be typed when
more pauses, and their effects, are as follows (i is an optional
integer argument, defaulting to 1):
i
<Return>
i j
i<Ctrl-e>
i<Space> Scroll 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.
i
d
i<Ctrl-d> Scroll 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 commands.
i
u
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 commands.
i
k
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.
i
z Display i more lines and sets the new window (screenful) size to i.
i
g Go to line i in the file, with a default of 1 (beginning of file). Scroll or rewrite the
screen so that the line is at the current position. If i is not specified, then more
displays the first screenful in the file.
i
G Go to line i in the file, with a default of the end of the file. If i is not specified, scrolls
or rewrites 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 the line is at the current position.
i
s Skip forward i lines, with a default of 1, and write 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.
HP-UX 11i Version 2: August 2003 3 Hewlett-Packard Company Section 1555