.\" Copyright (c) 1988 Mark Nudleman
.\" Copyright (c) 1988 Regents of the University of California.
.\" Redistribution and use in source and binary forms are permitted
.\" provided that the above copyright notice and this paragraph are
.\" duplicated in all such forms and that any documentation,
.\" advertising materials, and other materials related to such
.\" distribution and use acknowledge that the software was developed
.\" by Mark Nudleman and the University of California, Berkeley. The
.\" name of Mark Nudleman or the
.\" University may not be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\" @(#)more.1 5.8 (Berkeley) %G%
more \- file perusal filter for crt viewing
.B "more [-ceinpus] [-t tag] [-x tabs] [-/ pattern] [-#] [file ...]"
is a filter for paging through text one screenful at a time. It
so it can run on a variety of terminals. There is even limited support
for hardcopy terminals. (On a hardcopy terminal, lines which should be
printed at the top of the screen are prefixed with an up-arrow.)
may be a single dash (``-''), implying stdin.
Command line options are described below.
Options are also taken from the environment variable "MORE"
(make sure to precede them with a dash (``-'')) but command
line options will override them.
will repaint the screen by scrolling from the bottom of the screen.
If the -c option is set, when
needs to change the entire display, it will paint from the top line down.
exits as soon as it reaches end-of-file. The -e option tells more to
exit the second time it reaches end-of-file.
The -i option causes searches to ignore case; that is,
uppercase and lowercase are considered identical.
The -n flag suppresses line numbers.
The default (to use line numbers) may cause
to run more slowly in some cases, especially with a very large input file.
Suppressing line numbers with the -n flag will avoid this problem.
Using line numbers means: the line number will be displayed in the
= command, and the v command will pass the current line number to the editor.
The -p option gives you a colon (``:'') for a prompt, rather than
the more verbose traditional prompt.
consecutive blank lines to be squeezed into a single blank line.
The -t option, followed immediately by a tag, will edit the file
containing that tag. For more information, see the
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. CR-LF sequences are compressed to a single linefeed
character. The -u option causes backspaces to always be displayed as
control characters, i.e. as the two character sequence ``^H'', and CR-LF
The -x option sets tab stops every
positions. The default for
The -/ option specifies a string that will be searched for before
Some commands may be preceeded by a decimal number, called N in the
In the following descriptions, ^X means control-X.
help: display a summary of these commands.
If you forget all the other commands, remember this one.
Scroll forward N lines, default one window.
If N is more than the screen size, only the final screenful is displayed.
Scroll backward N lines, default one window (see option -z below).
If N is more than the screen size, only the final screenful is displayed.
Scroll forward N lines, default 1.
The entire N lines are displayed, even if N is more than the screen size.
Scroll backward N lines, default 1.
The entire N lines are displayed, even if N is more than the screen size.
Scroll forward N lines, default one half of the screen size.
If N is specified, it becomes the new default for
subsequent d and u commands.
Scroll backward N lines, default one half of the screen size.
If N is specified, it becomes the new default for
subsequent d and u commands.
Go to line N in the file, default 1 (beginning of file).
Go to line N in the file, default the end of the file.
Go to a position N percent into the file. N should be between 0
and 100. (This works if standard input is being read, but only if
has already read to the end of the file. It is always fast, but
Repaint the screen, discarding any buffered input.
Useful if the file is changing while it is being viewed.
Followed by any lowercase letter,
marks the current position with that letter.
Followed by any lowercase letter, returns to the position which
was previously marked with that letter.
Followed by another single quote, returns to the postion at
which the last "large" movement command was executed.
All marks are lost when a new file is examined.
Search forward in the file for the N-th line containing the pattern.
The pattern is a regular expression, as recognized by
The search starts at the second line displayed.
Search backward in the file for the N-th line containing the pattern.
The search starts at the line immediately before the top line displayed.
Like /, but the search is for the N-th line
which does NOT contain the pattern.
Like ?, but the search is for the N-th line
which does NOT contain the pattern.
Repeat previous search, for N-th line containing the last pattern
(or NOT containing the last pattern, if the previous search
If the filename is missing, the "current" file (see the 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
Examine the next file (from the list of files given in the command line).
If a number N is specified (not to be confused with the command N),
the N-th next file is examined.
Examine the previous file.
If a number N is specified, the N-th previous file is examined.
Invokes an editor to edit the current file being viewed.
The editor is taken from the environment variable EDITOR,
These options print out the number of the file currently being displayed
relative to the total number of files there are to display, the current
line number, the current byte number and the total bytes to display, and
what percentage of the file has been displayed. If
is reading from stdin, 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.
This software is derived from software contributed to Berkeley