2 .\" Copyright 1989 AT&T Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
3 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
4 .\" http://www.opengroup.org/bookstore/.
5 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
6 .\" This notice shall appear on any product containing this material.
7 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
9 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
10 .TH MORE 1 "Nov 4, 2005"
12 more, page \- browse or page through a text file
16 \fBmore\fR [\fB-cdflrsuw\fR] [\fB-lines\fR] [+ \fIlinenumber\fR]
17 [+/ \fIpattern\fR] [\fIfile\fR]...
22 \fBpage\fR [\fB-cdflrsuw\fR] [\fB-lines\fR] [+ \fIlinenumber\fR]
23 [+/ \fIpattern\fR] [\fIfile\fR]...
29 The \fBmore\fR utility is a filter that displays the contents of a text file on
30 the terminal, one screenful at a time. It normally pauses after each
31 screenful. \fBmore\fR then prints \fB--More--\fR
32 at the bottom of the screen. If
33 \fBmore\fR is reading from a file rather than a pipe, the percentage of
34 characters displayed so far is also shown.
37 The \fBmore\fR utility scrolls up to display one more line in response to a
38 \fBRETURN\fR character. \fBmore\fR displays another screenful in response to a
39 \fBSPACE\fR character. Other commands are listed below.
42 The \fBpage\fR utility clears the screen before displaying the next screenful
43 of text. \fBpage\fR only provides a one-line overlap between screens.
46 The \fBmore\fR utility sets the terminal to \fBNOECHO\fR mode, so that the
47 output can be continuous. Commands that you type do not normally show up on
48 your terminal, except for the \fB/\fR and \fB!\fR commands.
51 The \fBmore\fR utility exits after displaying the last specified file.
54 If the standard output is not a terminal, \fBmore\fR acts just like
55 \fBcat\fR(1), except that a header is printed before each file in a series.
59 The following options are supported:
66 Clears before displaying. Redraws the screen instead of scrolling for faster
67 displays. This option is ignored if the terminal does not have the ability to
68 clear to the end of a line.
77 Displays error messages rather than ringing the terminal bell if an
78 unrecognized command is used. This is helpful for inexperienced users.
87 Squeeze. Replaces multiple blank lines with a single blank line. This is
88 helpful when viewing \fBnroff\fR(1) output on the screen.
97 Does not fold long lines. This is useful when lines contain nonprinting
98 characters or escape sequences, such as those generated when \fBnroff\fR(1)
99 output is piped through \fBul\fR(1).
108 Does not treat \fBFORMFEED\fR characters (Control-l) as page breaks. If
109 \fB-l\fR is not used, \fBmore\fR pauses to accept commands after any line
110 containing a \fB^L\fR character (Control-l). Also, if a file begins with a
111 \fBFORMFEED\fR, the screen is cleared before the file is printed.
120 Normally, \fBmore\fR ignores control characters that it does not interpret in
121 some way. The \fB-r\fR option causes these to be displayed as \fB^\fR\fIC\fR
122 where \fIC\fR stands for any such control character.
131 Suppresses generation of underlining escape sequences. Normally, \fBmore\fR
132 handles underlining, such as that produced by \fBnroff\fR(1), in a manner
133 appropriate to the terminal. If the terminal can perform underlining or has a
134 stand-out mode, \fBmore\fR supplies appropriate escape sequences as called for
144 Normally, \fBmore\fR exits when it comes to the end of its input. With
145 \fB-w\fR, however, \fBmore\fR prompts and waits for any key to be struck before
152 \fB\fB-\fR\fIlines\fR\fR
155 Displays the indicated number of \fIlines\fR in each screenful, rather than the
156 default (the number of lines in the terminal screen less two).
162 \fB\fB+\fR\fIlinenumber\fR\fR
165 Start up at \fIlinenumber\fR.
171 \fB\fB+/\fR\fIpattern\fR\fR
174 Start up two lines above the line containing the regular expression
175 \fIpattern\fR. \fBNote:\fR Unlike editors, this construct should \fInot\fR end
176 with a `\fB/\fR.' If it does, then the trailing slash is taken as a character
177 in the search pattern.
184 \fBmore\fR uses the terminal's \fBterminfo\fR(4) entry to determine its display
188 \fBmore\fR looks in the environment variable \fBMORE\fR for any preset options.
189 For instance, to page through files using the \fB-c\fR mode by default, set the
190 value of this variable to \fB-c\fR. (Normally, the command sequence to set up
191 this environment variable is placed in the \fB\&.login\fR or \fB\&.profile\fR
196 The commands take effect immediately. It is not necessary to type a carriage
197 return unless the command requires a \fIfile\fR, \fIcommand\fR,
198 \fItagstring\fR, or \fIpattern\fR. Up to the time when the command character
199 itself is given, the user may type the line kill character to cancel the
200 numerical argument being formed. In addition, the user may type the erase
201 character to redisplay the `\fB--More--(\fR\fIxx\fR%)' or \fIfile\fR message.
204 In the following commands, \fIi\fR is a numerical argument (\fB1\fR by
212 Display another screenful, or \fIi\fR more lines if \fIi\fR is specified.
221 Display another line, or \fIi\fR more lines, if specified.
231 \fB\fIi\fR\fB^B\fR\fR
234 (Control-b) Skip back \fIi\fR screenfuls and then print a screenful.
244 \fB\fIi\fR\fB^D\fR\fR
247 (Control-d) Scroll forward one half screenful or \fIi\fR more lines. If \fIi\fR
248 is specified, the count becomes the default for subsequent \fBd\fR and \fBu\fR
258 Skip \fIi\fR screens full and then print a screenful.
267 Help. Give a description of all the \fBmore\fR commands.
285 Search for the \fIi\|\fRth occurrence of the last \fIpattern\fR entered.
298 Exit from \fBmore\fR.
307 Skip \fIi\fR lines and then print a screenful.
316 Drop into the \fBvi\fR editor at the current line of the current file.
325 Same as SPACE, except that \fIi\fR, if present, becomes the new default number
326 of lines per screenful.
335 Display the current line number.
341 \fB\fIi\fR\fB/\fR\fIpattern\fR\fR
344 Search forward for the \fIi\|\fRth occurrence of the regular expression
345 \fIpattern\fR. Display the screenful starting two lines before the line that
346 contains the \fIi\|\fRth match for the regular expression \fIpattern\fR, or the
347 end of a pipe, whichever comes first. If \fBmore\fR is displaying a file and
348 there is no match, its position in the file remains unchanged. Regular
349 expressions can be edited using erase and kill characters. Erasing back past
350 the first column cancels the search command.
356 \fB\fB!\fR\fIcommand\fR\fR
359 Invoke a shell to execute \fIcommand\|\fR. The characters \fB%\fR and \fB!\fR,
360 when used within \fIcommand\fR are replaced with the current filename and the
361 previous shell command, respectively. If there is no current filename, \fB%\fR
362 is not expanded. Prepend a backslash to these characters to escape expansion.
371 Display the current filename and line number.
377 \fB\fIi\fR\fB:n\fR\fR
380 Skip to the \fIi\|\fRth next filename given in the command line, or to the last
381 filename in the list if \fIi\fR is out of range.
387 \fB\fIi\fR\fB:p\fR\fR
390 Skip to the \fIi\|\fRth previous filename given in the command line, or to the
391 first filename if \fIi\fR is out of range. If given while \fBmore\fR is
392 positioned within a file, go to the beginning of the file. If \fBmore\fR is
393 reading from a pipe, \fBmore\fR simply rings the terminal bell.
406 Exit from \fBmore\fR (same as \fBq\fR or \fBQ\fR).
415 Single quote. Go to the point from which the last search started. If no search
416 has been performed in the current file, go to the beginning of the file.
425 Dot. Repeat the previous command.
434 Halt a partial display of text. \fBmore\fR stops sending output, and displays
435 the usual \fB--More--\fR prompt. Some output is lost as a result.
438 .SS "Large File Behavior"
441 See \fBlargefile\fR(5) for the description of the behavior of \fBmore\fR and
442 \fBpage\fR when encountering files greater than or equal to 2 Gbyte ( 2^31
444 .SH ENVIRONMENT VARIABLES
447 See \fBenviron\fR(5) for descriptions of the following environment variables
448 that affect the execution of \fBmore\fR: \fBLANG\fR, \fBLC_ALL\fR,
450 \fBLC_MESSAGES\fR, \fBNLSPATH\fR, and \fBTERM\fR.
455 The following exit values are returned:
462 Successful completion.
478 \fB\fB/usr/lib/more.help\fR\fR
481 help file for \fBmore\fR and \fBpage\fR.
487 See \fBattributes\fR(5) for descriptions of the following attributes:
494 ATTRIBUTE TYPE ATTRIBUTE VALUE
502 \fBcat\fR(1), \fBcsh\fR(1), \fBctags\fR(1), \fBman\fR(1), \fBnroff\fR(1),
503 \fBscript\fR(1), \fBsh\fR(1), \fBul\fR(1), \fBterminfo\fR(4),
504 \fBattributes\fR(5), \fBenviron\fR(5), \fBlargefile\fR(5), \fBstandards\fR(5),
508 Skipping backwards is too slow on large files.