-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmore.1.html
213 lines (213 loc) · 9.53 KB
/
more.1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html>
<!-- This is an automatically generated file. Do not edit.
t
Title: more
Author: [see the "AUTHOR(S)" section]
Generator: Asciidoctor 2.0.20
Date: 2024-12-16
Manual: User Commands
Source: util-linux 2.40.4
Language: English
-->
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="mandoc.css" type="text/css" media="all"/>
<title>MORE(1)</title>
</head>
<body>
<table class="head">
<tr>
<td class="head-ltitle">MORE(1)</td>
<td class="head-vol">User Commands</td>
<td class="head-rtitle">MORE(1)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp">more - display the contents of a file in a terminal</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><b>more</b> [options] <i>file</i> ...</p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp"><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>less</b>(1) provides <b>more</b>(1) emulation plus extensive
enhancements.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="OPTIONS"><a class="permalink" href="#OPTIONS">OPTIONS</a></h1>
<p class="Pp">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.</p>
<p class="Pp"><b>-d</b>, <b>--silent</b></p>
<div class="Bd-indent">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.</div>
<p class="Pp"><b>-l</b>, <b>--logical</b></p>
<div class="Bd-indent">Do not pause after any line containing a <b>^L</b> (form
feed).</div>
<p class="Pp"><b>-e</b>, <b>--exit-on-eof</b></p>
<div class="Bd-indent">Exit on End-Of-File, enabled by default if
POSIXLY_CORRECT environment variable is not set or if not executed on
terminal.</div>
<p class="Pp"><b>-f</b>, <b>--no-pause</b></p>
<div class="Bd-indent">Count logical lines, rather than screen lines (i.e., long
lines are not folded).</div>
<p class="Pp"><b>-p</b>, <b>--print-over</b></p>
<div class="Bd-indent">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>.</div>
<p class="Pp"><b>-c</b>, <b>--clean-print</b></p>
<div class="Bd-indent">Do not scroll. Instead, paint each screen from the top,
clearing the remainder of each line as it is displayed.</div>
<p class="Pp"><b>-s</b>, <b>--squeeze</b></p>
<div class="Bd-indent">Squeeze multiple blank lines into one.</div>
<p class="Pp"><b>-u</b>, <b>--plain</b></p>
<div class="Bd-indent">Suppress underlining. This option is silently ignored as
backwards compatibility.</div>
<p class="Pp"><b>-n</b>, <b>--lines</b> <i>number</i></p>
<div class="Bd-indent">Specify the <i>number</i> of lines per screenful. The
<i>number</i> argument is a positive decimal integer. The <b>--lines</b>
option shall override any values obtained from any other source, such as
number of lines reported by terminal.</div>
<p class="Pp"><b>-</b><i>number</i></p>
<div class="Bd-indent">A numeric option means the same as <b>--lines</b> option
argument.</div>
<p class="Pp"><b>+</b><i>number</i></p>
<div class="Bd-indent">Start displaying each file at line <i>number</i>.</div>
<p class="Pp"><b>+</b>/<i>string</i></p>
<div class="Bd-indent">The <i>string</i> to be searched in each file before
starting to display it.</div>
<p class="Pp"><b>-h</b>, <b>--help</b></p>
<div class="Bd-indent">Display help text and exit.</div>
<p class="Pp"><b>-V</b>, <b>--version</b></p>
<div class="Bd-indent">Print version and exit.</div>
</section>
<section class="Sh">
<h1 class="Sh" id="COMMANDS"><a class="permalink" href="#COMMANDS">COMMANDS</a></h1>
<p class="Pp">Interactive commands for <b>more</b> are based on <b>vi</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>
<p class="Pp"><b>h</b> or <b>?</b></p>
<div class="Bd-indent">Help; display a summary of these commands. If you forget
all other commands, remember this one.</div>
<p class="Pp"><b>SPACE</b></p>
<div class="Bd-indent">Display next k lines of text. Defaults to current screen
size.</div>
<p class="Pp"><b>z</b></p>
<div class="Bd-indent">Display next k lines of text. Defaults to current screen
size. Argument becomes new default.</div>
<p class="Pp"><b>RETURN</b></p>
<div class="Bd-indent">Display next k lines of text. Defaults to 1. Argument
becomes new default.</div>
<p class="Pp"><b>d</b> or <b>^D</b></p>
<div class="Bd-indent">Scroll k lines. Default is current scroll size, initially
11. Argument becomes new default.</div>
<p class="Pp"><b>q</b> or <b>Q</b> or <b>INTERRUPT</b></p>
<div class="Bd-indent">Exit.</div>
<p class="Pp"><b>s</b></p>
<div class="Bd-indent">Skip forward k lines of text. Defaults to 1.</div>
<p class="Pp"><b>f</b></p>
<div class="Bd-indent">Skip forward k screenfuls of text. Defaults to 1.</div>
<p class="Pp"><b>b</b> or <b>^B</b></p>
<div class="Bd-indent">Skip backwards k screenfuls of text. Defaults to 1. Only
works with files, not pipes.</div>
<p class="Pp"><b>'</b></p>
<div class="Bd-indent">Go to the place where the last search started.</div>
<p class="Pp"><b>=</b></p>
<div class="Bd-indent">Display current line number.</div>
<p class="Pp"><b>/pattern</b></p>
<div class="Bd-indent">Search for kth occurrence of regular expression. Defaults
to 1.</div>
<p class="Pp"><b>n</b></p>
<div class="Bd-indent">Search for kth occurrence of last regular expression.
Defaults to 1.</div>
<p class="Pp"><b>!command</b> or <b>:!command</b></p>
<div class="Bd-indent">Execute <i>command</i> in a subshell.</div>
<p class="Pp"><b>v</b></p>
<div class="Bd-indent">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>(1) if neither
<b>VISUAL</b> nor <b>EDITOR</b> is defined.</div>
<p class="Pp"><b>^L</b></p>
<div class="Bd-indent">Redraw screen.</div>
<p class="Pp"><b>:n</b></p>
<div class="Bd-indent">Go to kth next file. Defaults to 1.</div>
<p class="Pp"><b>:p</b></p>
<div class="Bd-indent">Go to kth previous file. Defaults to 1.</div>
<p class="Pp"><b>:f</b></p>
<div class="Bd-indent">Display current file name and line number.</div>
<p class="Pp"><b>.</b></p>
<div class="Bd-indent">Repeat previous command.</div>
</section>
<section class="Sh">
<h1 class="Sh" id="ENVIRONMENT"><a class="permalink" href="#ENVIRONMENT">ENVIRONMENT</a></h1>
<p class="Pp">The <b>more</b> command respects the following environment
variables, if they exist:</p>
<p class="Pp"><b>MORE</b></p>
<div class="Bd-indent">This variable may be set with favored options to
<b>more</b>.</div>
<p class="Pp"><b>SHELL</b></p>
<div class="Bd-indent">Current shell in use (normally set by the shell at login
time).</div>
<p class="Pp"><b>TERM</b></p>
<div class="Bd-indent">The terminal type used by <b>more</b> to get the terminal
characteristics necessary to manipulate the screen.</div>
<p class="Pp"><b>VISUAL</b></p>
<div class="Bd-indent">The editor the user prefers. Invoked when command key
<i>v</i> is pressed.</div>
<p class="Pp"><b>EDITOR</b></p>
<div class="Bd-indent">The editor of choice when <b>VISUAL</b> is not
specified.</div>
<p class="Pp"><b>POSIXLY_CORRECT</b></p>
<div class="Bd-indent">Disable exit-on-eof (see option <b>-e</b> for more
details).</div>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">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.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">Eric Shienbrood, UC Berkeley.</p>
<p class="Pp">Modified by Geoff Peck, UCB to add underlining, single
spacing.</p>
<p class="Pp">Modified by John Foderaro, UCB to add -c and MORE environment
variable.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><b>less</b>(1), <b>vi</b>(1)</p>
</section>
<section class="Sh">
<h1 class="Sh" id="REPORTING_BUGS"><a class="permalink" href="#REPORTING_BUGS">REPORTING
BUGS</a></h1>
<p class="Pp">For bug reports, use the issue tracker at <i></i>
<https://github.com/util-linux/util-linux/issues>.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AVAILABILITY"><a class="permalink" href="#AVAILABILITY">AVAILABILITY</a></h1>
<p class="Pp">The <b>more</b> command is part of the util-linux package which
can be downloaded from <i>Linux Kernel Archive</i>
<https://www.kernel.org/pub/linux/utils/util-linux/>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">2024-12-16</td>
<td class="foot-os">util-linux 2.40.4</td>
</tr>
</table>
</body>
</html>