Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/help/en/bash/more.html
blob: 10beed23d0455582d08b3eb9e79f92b138675e3c (plain)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<link rel="STYLESHEET" href="../term_tools/main.css" type="text/css">
<title>more MAN Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><!-- #BeginLibraryItem "/Library/head_bash.lbi" --><div id="nav-menu">
<ul>
<li><a class="rl" href="../term_tools/index.html"><img src="../term_tools/images/ss64.gif" title="Home" alt="Home"></a></li>
<li><a class="rl" href="../term_tools/bash"><img src="../term_tools/images/bash-l.gif" title="bash" alt="bash"></a></li>
<li><!-- Search Google -->
<form action="http://www.google.com/search" method="get" style="margin:0px;padding:0px;">
<div align="right">
<input name="q" type="text" class="body" size="25">
<input class="submit" type="submit" value="Search">
<input type="hidden" name="q" value="site:ss64.com/bash/">
</div>
</form></li>
<li><a class="rr" href="syntax.html"><img src="../term_tools/images/syntax-r.gif" title="Bash Syntax"></a></li>
</ul>
</div> <!-- #EndLibraryItem --><h1> more</h1> 
<p>Display output one screen at a time, <a href="less.html">less</a> 
provides <i>more</i> emulation and extensive enhancements.</p>
<pre>SYNTAX
      more [-dlfpcsu] [-<em>num</em>] [+/ <em>pattern</em>] [+ <em>linenum</em>] [<em>file</em> ...]

OPTIONS
     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.
 
     -<em>num</em>  This option specifies an integer which is the screen size (in
           lines).
 
     -d    more will prompt the user with the message "[Press space to continue,
           'q' to quit.]" and will display "[Press 'h' for instructions.]"
           instead of ringing the bell when an illegal key is pressed.
 
     -l    more usually treats ^L (form feed) as a special character, and will
           pause after any line that contains a form feed.  The -l option will
           prevent this behavior.
 
     -f    Causes more to count logical, rather than screen lines (i.e., long
           lines are not folded).
 
     -p    Do not scroll.  Instead, clear the whole screen and then display
           the text.             
     -c    Do not scroll.  Instead, paint each screen from the top, clearing
           the remainder of each line as it is displayed.
 
     -s    Squeeze multiple blank lines into one.
 
     -u    Suppress underlining.
 
     +/    The +/ option specifies a string that will be searched for before
           each file is displayed.
 
     +<em>num</em>  Start at line number num.
 
COMMANDS
     Interactive commands for more are based on vi(1).  Some commands may be
     preceeded by a decimal number, called k in the descriptions below.  In
     the following descriptions, ^X means control-X.
 
     h or ?      Help: display a summary of these commands.  If you forget all  
                 the other commands, remember this one.
 
     SPACE       Display next k lines of text.  Defaults to current screen
                 size.
 
     z           Display next k lines of text.  Defaults to current screen
                 size.  Argument becomes new default.
 
     RETURN      Display next k lines of text.  Defaults to 1.
                 Argument becomes new default.
 
     d or ^D     Scroll k lines.  Default is current scroll size, initially
                 11.  Argument becomes new default.
 
     q or Q or INTERRUPT    Exits the more command.
           
     s           Skip forward k lines of text.  Defaults to 1.
 
     f           Skip forward k screenfuls of text.  Defaults to 1.
 
     b or ^B     Skip backwards k screenfuls of text.  Defaults to 1.
 
     '           Go to place where previous search started.
 
     =           Display current line number.
 
     /<em>pattern</em>    Search for kth occurrence of regular expression. Defaults to 1.
 
     n           Search for kth occurrence of last r.e.  Defaults to 1.
 
     !<cmd> or :!<cmd>     Execute <cmd> in a subshell           
         
     v           Start up /usr/bin/vi at current line
 
     ^L          Redraw screen
 
     :n          Go to kth next file.  Defaults to 1.
 
     :p          Go to kth previous file.  Defaults to 1.
 
     :f          Display current file name and line number
 
     .           Repeat previous command
 
ENVIRONMENT
     More utilizes the following environment variables, if they exist:
 
     MORE        This variable may be set with favored options to more.
     SHELL       Current shell in use (normally set by the shell at login</pre>
<p><i>&quot;There are few more impressive sights than a Scotsman 
  on the make&quot; - Sir 
  James Barrie </i><br>
  <br>
  <b> Related bash commands</b>:<br>
  <a href="echo.html"><br>
  echo</a> - Display message on screen<br>
  <a href="less.html">less</a> - Display output one screen at a time<br>
<a href="tee.html">tee</a> - Redirect output to multiple files <br>
<a href="http://www.jedsoft.org/most/">most</a> - A  paging program for Unix, VMS, MSDOS, and win32 systems (allows scrolling left and right).<br>
Equivalent Windows command:
<a href="../term_tools/nt/more.html">MORE</a> - Display output one screen at a time</p>
<!-- #BeginLibraryItem "/Library/foot_bash.lbi" --><p align="left"><script type="text/javascript"><!--
google_ad_client = "pub-6140977852749469";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="1984328893";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "000000";
google_color_text = "333333";
google_color_url = "0000FF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br>
</p>
<div align="center"><hr size="1">
  <p id="top"><a href="#"><img src="../term_tools/images/top-4.gif" width="47" height="53" border="0" alt="Back to the Top" title="Back to the Top"></a></p>
  <p class="tagline">&copy; Copyright <a href="http://ss64.com/">SS64.com</a> 1999-2010<br>
Some rights reserved<br>
</p>
</div><!-- #EndLibraryItem --></body>
</html>