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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
|
.\"
.\" 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
.\" http://www.opengroup.org/bookstore/.
.\"
.\" 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 SunOS 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.
.\"
.\" This notice shall appear on any product containing this material.
.\"
.\" 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.
.\"
.\" 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.
.\"
.\" 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]
.\"
.\"
.\" Copyright 1989 AT&T
.\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
.\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
.\"
.TH MORE 1 "Nov 4, 2005"
.SH NAME
more, page \- browse or page through a text file
.SH SYNOPSIS
.LP
.nf
\fB/usr/bin/more\fR [\fB-cdflrsuw\fR] [\fB-lines\fR] [+ \fIlinenumber\fR]
[+/ \fIpattern\fR] [\fIfile\fR]...
.fi
.LP
.nf
\fB/usr/bin/page\fR [\fB-cdflrsuw\fR] [\fB-lines\fR] [+ \fIlinenumber\fR]
[+/ \fIpattern\fR] [\fIfile\fR]...
.fi
.LP
.nf
\fB/usr/xpg4/bin/more\fR [\fB-cdeisu\fR] [\fB-n\fR \fInumber\fR] [\fB-p\fR \fIcommand\fR]
[\fB-t\fR \fItagstring\fR] [\fIfile\fR]...
.fi
.LP
.nf
\fB/usr/xpg4/bin/more\fR [\fB-cdeisu\fR] [\fB-n\fR \fInumber\fR] [+ \fIcommand\fR]
[\fB-t\fR \fItagstring\fR] [\fIfile\fR]...
.fi
.SH DESCRIPTION
.sp
.LP
The \fBmore\fR utility is a filter that displays the contents of a text file on
the terminal, one screenful at a time. It normally pauses after each
screenful. \fB/usr/bin/more\fR then prints \fB--More--\fR and
\fB/usr/xpg4/bin/more\fR then prints \fIfile\fR at the bottom of the screen. If
\fBmore\fR is reading from a file rather than a pipe, the percentage of
characters displayed so far is also shown.
.sp
.LP
The \fBmore\fR utility scrolls up to display one more line in response to a
\fBRETURN\fR character. \fBmore\fR displays another screenful in response to a
\fBSPACE\fR character. Other commands are listed below.
.sp
.LP
The \fBpage\fR utility clears the screen before displaying the next screenful
of text. \fBpage\fR only provides a one-line overlap between screens.
.sp
.LP
The \fBmore\fR utility sets the terminal to \fBNOECHO\fR mode, so that the
output can be continuous. Commands that you type do not normally show up on
your terminal, except for the \fB/\fR and \fB!\fR commands.
.sp
.LP
The \fB/usr/bin/more\fR utility exits after displaying the last specified file.
\fB/usr/xpg4/bin/more\fR prompts for a command at the last line of the last
specified file.
.sp
.LP
If the standard output is not a terminal, \fBmore\fR acts just like
\fBcat\fR(1), except that a header is printed before each file in a series.
.SH OPTIONS
.sp
.LP
The following options are supported for both \fB/usr/bin/more\fR and
\fB/usr/xpg4/bin/more\fR:
.sp
.ne 2
.na
\fB\fB-c\fR \fR
.ad
.RS 7n
Clears before displaying. Redraws the screen instead of scrolling for faster
displays. This option is ignored if the terminal does not have the ability to
clear to the end of a line.
.RE
.sp
.ne 2
.na
\fB\fB-d\fR \fR
.ad
.RS 7n
Displays error messages rather than ringing the terminal bell if an
unrecognized command is used. This is helpful for inexperienced users.
.RE
.sp
.ne 2
.na
\fB\fB-s\fR \fR
.ad
.RS 7n
Squeeze. Replaces multiple blank lines with a single blank line. This is
helpful when viewing \fBnroff\fR(1) output on the screen.
.RE
.SS "/usr/bin/more"
.sp
.LP
The following options are supported for \fB/usr/bin/more\fR only:
.sp
.ne 2
.na
\fB\fB-f\fR \fR
.ad
.RS 15n
Does not fold long lines. This is useful when lines contain nonprinting
characters or escape sequences, such as those generated when \fBnroff\fR(1)
output is piped through \fBul\fR(1).
.RE
.sp
.ne 2
.na
\fB\fB-l\fR \fR
.ad
.RS 15n
Does not treat \fBFORMFEED\fR characters (Control-l) as page breaks. If
\fB-l\fR is not used, \fBmore\fR pauses to accept commands after any line
containing a \fB^L\fR character (Control-l). Also, if a file begins with a
\fBFORMFEED\fR, the screen is cleared before the file is printed.
.RE
.sp
.ne 2
.na
\fB\fB-r\fR \fR
.ad
.RS 15n
Normally, \fBmore\fR ignores control characters that it does not interpret in
some way. The \fB-r\fR option causes these to be displayed as \fB^\fR\fIC\fR
where \fIC\fR stands for any such control character.
.RE
.sp
.ne 2
.na
\fB\fB-u\fR \fR
.ad
.RS 15n
Suppresses generation of underlining escape sequences. Normally, \fBmore\fR
handles underlining, such as that produced by \fBnroff\fR(1), in a manner
appropriate to the terminal. If the terminal can perform underlining or has a
stand-out mode, \fBmore\fR supplies appropriate escape sequences as called for
in the text file.
.RE
.sp
.ne 2
.na
\fB\fB-w\fR \fR
.ad
.RS 15n
Normally, \fBmore\fR exits when it comes to the end of its input. With
\fB-w\fR, however, \fBmore\fR prompts and waits for any key to be struck before
exiting.
.RE
.sp
.ne 2
.na
\fB\fB-\fR\fIlines\fR\fR
.ad
.RS 15n
Displays the indicated number of \fIlines\fR in each screenful, rather than the
default (the number of lines in the terminal screen less two).
.RE
.sp
.ne 2
.na
\fB\fB+\fR\fIlinenumber\fR\fR
.ad
.RS 15n
Start up at \fIlinenumber\fR.
.RE
.sp
.ne 2
.na
\fB\fB+/\fR\fIpattern\fR\fR
.ad
.RS 15n
Start up two lines above the line containing the regular expression
\fIpattern\fR. \fBNote:\fR Unlike editors, this construct should \fInot\fR end
with a `\fB/\fR.' If it does, then the trailing slash is taken as a character
in the search pattern.
.RE
.SS "/usr/xpg4/bin/more"
.sp
.LP
The following options are supported for \fB/usr/xpg4/bin/more\fR only:
.sp
.ne 2
.na
\fB\fB-e\fR \fR
.ad
.RS 17n
Exits immediately after writing the last line of the last file in the argument
list.
.RE
.sp
.ne 2
.na
\fB\fB-i\fR \fR
.ad
.RS 17n
Performs pattern matching in searches without regard to case.
.RE
.sp
.ne 2
.na
\fB\fB-n\fR \fInumber\fR \fR
.ad
.RS 17n
Specifies the number of lines per screenful. The \fInumber\fR argument is a
positive decimal integer. The \fB-n\fR option overrides any values obtained
from the environment.
.RE
.sp
.ne 2
.na
\fB\fB-p\fR \fIcommand\fR \fR
.ad
.br
.na
\fB\fB+\fR\fIcommand\fR \fR
.ad
.RS 17n
For each file examined, initially executes the \fBmore\fR command in the
\fIcommand\fR argument. If the command is a positioning command, such as a line
number or a regular expression search, set the current position to represent
the final results of the command, without writing any intermediate lines of the
file. For example, the two commands:
.sp
.in +2
.nf
\fBmore -p 1000j file
more -p 1000G file\fR
.fi
.in -2
.sp
are equivalent and start the display with the current position at line 1000,
bypassing the lines that \fBj\fR would write and scroll off the screen if it
had been issued during the file examination. If the positioning command is
unsuccessful, the first line in the file will be the current position.
.RE
.sp
.ne 2
.na
\fB\fB-t\fR \fItagstring\fR \fR
.ad
.RS 17n
Writes the screenful of the file containing the tag named by the
\fItagstring\fR argument. See the \fBctags\fR(1) utility.
.RE
.sp
.ne 2
.na
\fB\fB-u\fR\fR
.ad
.RS 17n
Treats a backspace character as a printable control character, displayed as a
^H (Control-h), suppressing backspacing and the special handling that produces
underlined or standout-mode text on some terminal types. Also, does not ignore
a carriage-return character at the end of a line.
.RE
.sp
.LP
If both the \fB-t\fR\fI tagstring\fR and \fB-p\fR\fI command\fR (or the
obsolescent \fI+command\fR) options are given, the \fB-t\fR\fI tagstring\fR is
processed first.
.SH USAGE
.SS "Environment"
.sp
.LP
\fBmore\fR uses the terminal's \fBterminfo\fR(5) entry to determine its display
characteristics.
.sp
.LP
\fBmore\fR looks in the environment variable \fBMORE\fR for any preset options.
For instance, to page through files using the \fB-c\fR mode by default, set the
value of this variable to \fB-c\fR. (Normally, the command sequence to set up
this environment variable is placed in the \fB\&.login\fR or \fB\&.profile\fR
file).
.SS "Commands"
.sp
.LP
The commands take effect immediately. It is not necessary to type a carriage
return unless the command requires a \fIfile\fR, \fIcommand\fR,
\fItagstring\fR, or \fIpattern\fR. Up to the time when the command character
itself is given, the user may type the line kill character to cancel the
numerical argument being formed. In addition, the user may type the erase
character to redisplay the `\fB--More--(\fR\fIxx\fR%)' or \fIfile\fR message.
.sp
.LP
In the following commands, \fIi\fR is a numerical argument (\fB1\fR by
default).
.sp
.ne 2
.na
\fB\fIi\fRSPACE \fR
.ad
.RS 13n
Display another screenful, or \fIi\fR more lines if \fIi\fR is specified.
.RE
.sp
.ne 2
.na
\fB\fIi\fRRETURN \fR
.ad
.RS 13n
Display another line, or \fIi\fR more lines, if specified.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBb\fR\fR
.ad
.br
.na
\fB\fIi\fR\fB^B\fR\fR
.ad
.RS 13n
(Control-b) Skip back \fIi\fR screenfuls and then print a screenful.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBd\fR\fR
.ad
.br
.na
\fB\fIi\fR\fB^D\fR\fR
.ad
.RS 13n
(Control-d) Scroll forward one half screenful or \fIi\fR more lines. If \fIi\fR
is specified, the count becomes the default for subsequent \fBd\fR and \fBu\fR
commands.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBf\fR\fR
.ad
.RS 13n
Skip \fIi\fR screens full and then print a screenful.
.RE
.sp
.ne 2
.na
\fB\fBh\fR\fR
.ad
.RS 13n
Help. Give a description of all the \fBmore\fR commands.
.RE
.sp
.ne 2
.na
\fB\fB^L\fR \fR
.ad
.RS 13n
(Control-l) Refresh.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBn\fR\fR
.ad
.RS 13n
Search for the \fIi\|\fRth occurrence of the last \fIpattern\fR entered.
.RE
.sp
.ne 2
.na
\fB\fBq\fR \fR
.ad
.br
.na
\fB\fBQ\fR \fR
.ad
.RS 13n
Exit from \fBmore\fR.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBs\fR\fR
.ad
.RS 13n
Skip \fIi\fR lines and then print a screenful.
.RE
.sp
.ne 2
.na
\fB\fBv\fR\fR
.ad
.RS 13n
Drop into the \fBvi\fR editor at the current line of the current file.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBz\fR\fR
.ad
.RS 13n
Same as SPACE, except that \fIi\fR, if present, becomes the new default number
of lines per screenful.
.RE
.sp
.ne 2
.na
\fB\fB=\fR \fR
.ad
.RS 13n
Display the current line number.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fB/\fR\fIpattern\fR\fR
.ad
.RS 13n
Search forward for the \fIi\|\fRth occurrence of the regular expression
\fIpattern\fR. Display the screenful starting two lines before the line that
contains the \fIi\|\fRth match for the regular expression \fIpattern\fR, or the
end of a pipe, whichever comes first. If \fBmore\fR is displaying a file and
there is no match, its position in the file remains unchanged. Regular
expressions can be edited using erase and kill characters. Erasing back past
the first column cancels the search command.
.RE
.sp
.ne 2
.na
\fB\fB!\fR\fIcommand\fR\fR
.ad
.RS 13n
Invoke a shell to execute \fIcommand\|\fR. The characters \fB%\fR and \fB!\fR,
when used within \fIcommand\fR are replaced with the current filename and the
previous shell command, respectively. If there is no current filename, \fB%\fR
is not expanded. Prepend a backslash to these characters to escape expansion.
.RE
.sp
.ne 2
.na
\fB\fB:f\fR\fR
.ad
.RS 13n
Display the current filename and line number.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fB:n\fR\fR
.ad
.RS 13n
Skip to the \fIi\|\fRth next filename given in the command line, or to the last
filename in the list if \fIi\fR is out of range.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fB:p\fR\fR
.ad
.RS 13n
Skip to the \fIi\|\fRth previous filename given in the command line, or to the
first filename if \fIi\fR is out of range. If given while \fBmore\fR is
positioned within a file, go to the beginning of the file. If \fBmore\fR is
reading from a pipe, \fBmore\fR simply rings the terminal bell.
.RE
.sp
.ne 2
.na
\fB\fB:q\fR\fR
.ad
.br
.na
\fB\fB:Q\fR\fR
.ad
.RS 13n
Exit from \fBmore\fR (same as \fBq\fR or \fBQ\fR).
.RE
.SS "/usr/bin/more"
.sp
.LP
The following commands are available only in \fB/usr/bin/more\fR:
.sp
.ne 2
.na
\fB\fB\&'\fR\fR
.ad
.RS 9n
Single quote. Go to the point from which the last search started. If no search
has been performed in the current file, go to the beginning of the file.
.RE
.sp
.ne 2
.na
\fB\fB\&.\fR\fR
.ad
.RS 9n
Dot. Repeat the previous command.
.RE
.sp
.ne 2
.na
\fB\fB^\|\e\fR\fR
.ad
.RS 9n
Halt a partial display of text. \fBmore\fR stops sending output, and displays
the usual \fB--More--\fR prompt. Some output is lost as a result.
.RE
.SS "/usr/xpg4/bin/more"
.sp
.LP
The following commands are available only in \fB/usr/xpg4/bin/more\fR:
.sp
.ne 2
.na
\fB\fIi\fR\fB^F\fR\fR
.ad
.RS 17n
(Control-f) Skip \fIi\fR screens full and print a screenful. (Same as
\fIi\fR\fBf\fR.)
.RE
.sp
.ne 2
.na
\fB\fB^G\fR\fR
.ad
.RS 17n
(Control-g) Display the current line number (same as \fB=\fR).
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBg\fR\fR
.ad
.RS 17n
Go to line number \fIi\fR with the default of the first line in the file.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBG\fR\fR
.ad
.RS 17n
Go to line number \fIi\fR with the default of the Last line in the file.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBj\fR\fR
.ad
.RS 17n
Display another line, or \fIi\fR more lines, if specified. (Same as
\fIi\fRRETURN.)
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBk\fR\fR
.ad
.RS 17n
Scroll backwards one or \fIi\fR lines, if specified.
.RE
.sp
.ne 2
.na
\fB\fBm\fR\fIletter\fR \fR
.ad
.RS 17n
Mark the current position with the name \fIletter\fR.
.RE
.sp
.ne 2
.na
\fB\fBN\fR \fR
.ad
.RS 17n
Reverse direction of search.
.RE
.sp
.ne 2
.na
\fB\fBr\fR \fR
.ad
.RS 17n
Refresh the screen.
.RE
.sp
.ne 2
.na
\fB\fBR\fR \fR
.ad
.RS 17n
Refresh the screen, discarding any buffered input.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fBu\fR\fR
.ad
.br
.na
\fB\fIi\fR\fB^U\fR\fR
.ad
.RS 17n
(Control-u) Scroll backwards one half a screen of \fIi\fR lines, if specified.
If \fIi\fR is specified, the count becomes the new default for subsequent
\fBd\fR and \fBu\fR commands.
.RE
.sp
.ne 2
.na
\fB\fBZZ\fR \fR
.ad
.RS 17n
Exit from \fBmore\fR (same as \fBq\fR).
.RE
.sp
.ne 2
.na
\fB\fB:e\fR \fIfile\fR \fR
.ad
.RS 17n
Examine (display) a new file. If no \fIfile\fR is specified, the current file
is redisplayed.
.RE
.sp
.ne 2
.na
\fB\fB:t\fR \fItagstring\fR \fR
.ad
.RS 17n
Go to the tag named by the \fItagstring\fR argument and scroll/rewrite the
screen with the tagged line in the current position. See the \fBctags\fR
utility.
.RE
.sp
.ne 2
.na
\fB\fB\&'\fR\fIletter\fR \fR
.ad
.RS 17n
Return to the position that was previously marked with the name \fIletter\fR.
.RE
.sp
.ne 2
.na
\fB\fB\&''\fR \fR
.ad
.RS 17n
Return to the position from which the last move of more than a screenful was
made. Defaults to the beginning of the file.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fB?\fR[\fI!\fR]\fIpattern\fR\fR
.ad
.RS 17n
Search backward in the file for the \fIi\fRth line containing the
\fIpattern\fR. The \fI!\fR specifies to search backward for the \fIi\fRth line
that does not contain the \fIpattern\fR.
.RE
.sp
.ne 2
.na
\fB\fIi\fR\fB/\fR\fB!\fR\fIpattern\fR\fR
.ad
.RS 17n
Search forward in the file for the \fIi\fRth line that does not contain the
pattern.
.RE
.sp
.ne 2
.na
\fB\fB!\fR[\fIcommand\fR]\fR
.ad
.RS 17n
Invoke a shell or the specified command.
.RE
.SS "Large File Behavior"
.sp
.LP
See \fBlargefile\fR(7) for the description of the behavior of \fBmore\fR and
\fBpage\fR when encountering files greater than or equal to 2 Gbyte ( 2^31
bytes).
.SH ENVIRONMENT VARIABLES
.sp
.LP
See \fBenviron\fR(7) for descriptions of the following environment variables
that affect the execution of \fBmore\fR: \fBLANG\fR, \fBLC_ALL\fR,
\fBLC_COLLATE\fR (\fB/usr/xpg4/bin/more\fR only), \fBLC_CTYPE\fR,
\fBLC_MESSAGES\fR, \fBNLSPATH\fR, and \fBTERM\fR.
.SS "/usr/xpg4/bin/more"
.sp
.LP
The following environment variables also affect the execution of
\fB/usr/xpg4/bin/more\fR:
.sp
.ne 2
.na
\fB\fBCOLUMNS\fR \fR
.ad
.RS 12n
Overrides the system selected horizontal screen size.
.RE
.sp
.ne 2
.na
\fB\fBEDITOR\fR \fR
.ad
.RS 12n
Used by the \fBv\fR command to select an editor.
.RE
.sp
.ne 2
.na
\fB\fBLINES\fR \fR
.ad
.RS 12n
Overrides the system selected vertical screen size. The \fB-n\fR option has
precedence over \fBLINES\fR in determining the number of lines in a screen.
.RE
.sp
.ne 2
.na
\fB\fBMORE\fR \fR
.ad
.RS 12n
A string specifying options as described in the OPTIONS section, above. As in a
command line, The options must be separated by blank characters and each option
specification must start with a \(mi. Any command line options are processed
after those specified in \fBMORE\fR as though the command line were: \fBmore
$MORE\fR \fIoptions operands\fR
.RE
.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR \fR
.ad
.RS 7n
Successful completion.
.RE
.sp
.ne 2
.na
\fB\fB>0\fR \fR
.ad
.RS 7n
An error occurred.
.RE
.SH FILES
.sp
.ne 2
.na
\fB\fB/usr/lib/more.help\fR\fR
.ad
.RS 22n
help file for \fB/usr/bin/more\fR and \fB/usr/bin/page\fR only.
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.SS "/usr/bin/more /usr/bin/page"
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
CSI Not enabled
.TE
.SS "/usr/xpg4/bin/more"
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
CSI Enabled
_
Interface Stability Standard
.TE
.SH SEE ALSO
.sp
.LP
.BR cat (1),
.BR csh (1),
.BR ctags (1),
.BR man (1),
.BR nroff (1),
.BR script (1),
.BR sh (1),
.BR ul (1),
.BR terminfo (5),
.BR attributes (7),
.BR environ (7),
.BR largefile (7),
.BR standards (7)
.SS "/usr/bin/more /usr/bin/page"
.sp
.LP
.BR regcomp (3C)
.SS "/usr/xpg4/bin/more"
.sp
.LP
.BR regex (7)
.SH NOTES
.SS "/usr/bin/more"
.sp
.LP
Skipping backwards is too slow on large files.
.SS "/usr/xpg4/bin/more"
.sp
.LP
This utility will not behave correctly if the terminal is not set up properly.
|