335 lines
6.7 KiB
HTML
335 lines
6.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MORE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MORE</H1>
|
|
Section: User Commands (1)<BR>Updated: February 2014<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
more - file perusal filter for crt viewing
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>more</B>
|
|
|
|
[options]
|
|
<I>file</I>...
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>more</B>
|
|
|
|
is a filter for paging through text one screenful at a time. This version is
|
|
especially primitive. Users should realize that
|
|
<B><A HREF="/cgi-bin/man/man2html?1+less">less</A></B>(1)
|
|
|
|
provides
|
|
<B><A HREF="/cgi-bin/man/man2html?1+more">more</A></B>(1)
|
|
|
|
emulation plus extensive enhancements.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
Options are also taken from the environment variable
|
|
<B>MORE</B>
|
|
|
|
(make sure to precede them with a dash
|
|
(<B>-</B>))
|
|
|
|
but command-line options will override those.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-d</B>
|
|
|
|
<DD>
|
|
Prompt with "[Press space to continue, 'q' to quit.]",
|
|
and display "[Press 'h' for instructions.]" instead of ringing
|
|
the bell when an illegal key is pressed.
|
|
<DT id="2"><B>-l</B>
|
|
|
|
<DD>
|
|
Do not pause after any line containing a
|
|
<B>^L</B>
|
|
|
|
(form feed).
|
|
<DT id="3"><B>-f</B>
|
|
|
|
<DD>
|
|
Count logical lines, rather than screen lines (i.e., long lines are not folded).
|
|
<DT id="4"><B>-p</B>
|
|
|
|
<DD>
|
|
Do not scroll. Instead, clear the whole screen and then display the text.
|
|
Notice that this option is switched on automatically if the executable is
|
|
named
|
|
<B>page</B>.
|
|
|
|
<DT id="5"><B>-c</B>
|
|
|
|
<DD>
|
|
Do not scroll. Instead, paint each screen from the top, clearing the
|
|
remainder of each line as it is displayed.
|
|
<DT id="6"><B>-s</B>
|
|
|
|
<DD>
|
|
Squeeze multiple blank lines into one.
|
|
<DT id="7"><B>-u</B>
|
|
|
|
<DD>
|
|
Suppress underlining.
|
|
<DT id="8"><B>-</B><I>number</I>
|
|
|
|
<DD>
|
|
The screen size to use, in
|
|
<I>number</I>
|
|
|
|
of lines.
|
|
<DT id="9"><B>+</B><I>number</I>
|
|
|
|
<DD>
|
|
Start displaying each file at line
|
|
<I>number</I>.
|
|
|
|
<DT id="10"><B>+/</B><I>string</I>
|
|
|
|
<DD>
|
|
The
|
|
<I>string</I>
|
|
|
|
to be searched in each file before starting to display it.
|
|
<DT id="11"><B>--help</B><DD>
|
|
Display help text and exit.
|
|
<DT id="12"><B>-V</B>, <B>--version</B><DD>
|
|
Display version information and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>COMMANDS</H2>
|
|
|
|
Interactive commands for
|
|
<B>more</B>
|
|
|
|
are based on
|
|
<B><A HREF="/cgi-bin/man/man2html?1+vi">vi</A></B>(1).
|
|
|
|
Some commands may be preceded by a decimal number, called k in the
|
|
descriptions below. In the following descriptions,
|
|
<B>^X</B>
|
|
|
|
means
|
|
<B>control-X</B>.
|
|
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="13"><DD>
|
|
|
|
<DL COMPACT>
|
|
<DT id="14"><B>h</B> or<B> ?</B>
|
|
|
|
<DD>
|
|
Help; display a summary of these commands. If you forget all other
|
|
commands, remember this one.
|
|
<DT id="15"><B>SPACE</B>
|
|
|
|
<DD>
|
|
Display next k lines of text. Defaults to current screen size.
|
|
<DT id="16"><B>z</B>
|
|
|
|
<DD>
|
|
Display next k lines of text. Defaults to current screen size. Argument
|
|
becomes new default.
|
|
<DT id="17"><B>RETURN</B>
|
|
|
|
<DD>
|
|
Display next k lines of text. Defaults to 1. Argument becomes new default.
|
|
<DT id="18"><B>d</B> or<B> ^D</B>
|
|
|
|
<DD>
|
|
Scroll k lines. Default is current scroll size, initially 11. Argument
|
|
becomes new default.
|
|
<DT id="19"><B>q</B> or<B> Q</B> or<B> INTERRUPT</B>
|
|
|
|
<DD>
|
|
Exit.
|
|
<DT id="20"><B>s</B>
|
|
|
|
<DD>
|
|
Skip forward k lines of text. Defaults to 1.
|
|
<DT id="21"><B>f</B>
|
|
|
|
<DD>
|
|
Skip forward k screenfuls of text. Defaults to 1.
|
|
<DT id="22"><B>b</B> or<B> ^B</B>
|
|
|
|
<DD>
|
|
Skip backwards k screenfuls of text. Defaults to 1. Only works with files,
|
|
not pipes.
|
|
<DT id="23"><B>'</B>
|
|
|
|
<DD>
|
|
Go to the place where the last search started.
|
|
<DT id="24"><B>=</B>
|
|
|
|
<DD>
|
|
Display current line number.
|
|
<DT id="25"><B>/pattern</B>
|
|
|
|
<DD>
|
|
Search for kth occurrence of regular expression. Defaults to 1.
|
|
<DT id="26"><B>n</B>
|
|
|
|
<DD>
|
|
Search for kth occurrence of last regular expression. Defaults to 1.
|
|
<DT id="27"><B>!command</B> or<B> :!command</B>
|
|
|
|
<DD>
|
|
Execute
|
|
<I>command</I>
|
|
|
|
in a subshell.
|
|
<DT id="28"><B>v</B>
|
|
|
|
<DD>
|
|
Start up an editor at current line. The editor is taken from the environment
|
|
variable
|
|
<B>VISUAL</B>
|
|
|
|
if defined, or
|
|
<B>EDITOR</B>
|
|
|
|
if
|
|
<B>VISUAL</B>
|
|
|
|
is not defined, or defaults
|
|
to
|
|
<B>vi</B>
|
|
|
|
if neither
|
|
<B>VISUAL</B>
|
|
|
|
nor
|
|
<B>EDITOR</B>
|
|
|
|
is defined.
|
|
<DT id="29"><B>^L</B>
|
|
|
|
<DD>
|
|
Redraw screen.
|
|
<DT id="30"><B>:n</B>
|
|
|
|
<DD>
|
|
Go to kth next file. Defaults to 1.
|
|
<DT id="31"><B>:p</B>
|
|
|
|
<DD>
|
|
Go to kth previous file. Defaults to 1.
|
|
<DT id="32"><B>:f</B>
|
|
|
|
<DD>
|
|
Display current file name and line number.
|
|
<DT id="33"><B>.</B>
|
|
|
|
<DD>
|
|
Repeat previous command.
|
|
</DL>
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
The
|
|
<B>more</B>
|
|
|
|
command respects the following environment variables, if they exist:
|
|
<DL COMPACT>
|
|
<DT id="34"><B>MORE</B>
|
|
|
|
<DD>
|
|
This variable may be set with favored options to
|
|
<B>more</B>.
|
|
|
|
<DT id="35"><B>SHELL</B>
|
|
|
|
<DD>
|
|
Current shell in use (normally set by the shell at login time).
|
|
<DT id="36"><B>TERM</B>
|
|
|
|
<DD>
|
|
The terminal type used by <B>more</B> to get the terminal
|
|
characteristics necessary to manipulate the screen.
|
|
<DT id="37"><B>VISUAL</B>
|
|
|
|
<DD>
|
|
The editor the user prefers. Invoked when command key
|
|
<I>v</I>
|
|
|
|
is pressed.
|
|
<DT id="38"><B>EDITOR</B>
|
|
|
|
<DD>
|
|
The editor of choice when
|
|
<B>VISUAL</B>
|
|
|
|
is not specified.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+less">less</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+vi">vi</A></B>(1)
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
Eric Shienbrood, UC Berkeley
|
|
<BR>
|
|
|
|
Modified by Geoff Peck, UCB to add underlining, single spacing
|
|
<BR>
|
|
|
|
Modified by John Foderaro, UCB to add -c and MORE environment variable
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>HISTORY</H2>
|
|
|
|
The
|
|
<B>more</B>
|
|
|
|
command appeared in 3.0BSD. This man page documents
|
|
<B>more</B>
|
|
|
|
version 5.19 (Berkeley 6/29/88), which is currently in use in the Linux
|
|
community. Documentation was produced using several other versions of the
|
|
man page, and extensive inspection of the source code.
|
|
<A NAME="lbAK"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The more command is part of the util-linux package and is available from
|
|
|
|
Linux Kernel Archive
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="39"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="40"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="41"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="42"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="43"><A HREF="#lbAF">COMMANDS</A><DD>
|
|
<DT id="44"><A HREF="#lbAG">ENVIRONMENT</A><DD>
|
|
<DT id="45"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="46"><A HREF="#lbAI">AUTHORS</A><DD>
|
|
<DT id="47"><A HREF="#lbAJ">HISTORY</A><DD>
|
|
<DT id="48"><A HREF="#lbAK">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|