Manual / more
more(1)
| MORE(1) | General Commands Manual | MORE(1) |
NAME
more - page through a file
SYNOPSIS
more [ -ceisu ] [ -n lines ] [ file ... ]
DESCRIPTION
More displays the named files (standard input default) on the console a screenful at a time, pausing after each with a --More-- prompt. A single key at the prompt says what to do next; the keys are those of POSIX more, and most take a count typed first. Every line's position is remembered, so the display can also go backward. When standard output is not the console the files are simply copied to it and only -s has any effect.
The options are
- -c
- Clear the screen before each file rather than scrolling. A full page forward is always painted from the top of a cleared screen; a half page or a counted number of lines scrolls.
- -e
- Exit when the last line of the last file has been written, instead of prompting there.
- -i
- Ignore case in searches.
- -n lines
- Use lines as the screenful, instead of one less than the console's rows.
- -s
- Squeeze runs of empty lines to one.
- -u
- Leave backspaces alone. Without it a character overstruck with itself (as nroff(1) emboldens) is shown bold, and one overstruck with an underscore plain.
- -A
- Page on the terminal's alternate screen: the screen as it was before more started comes back when it exits, as vi(1) does. Not in POSIX; man(1) uses it, so a manual page leaves no trace.
The commands are
- SPACE, f, ^F
- Forward a screenful; with a count, that many lines (f: past the screen, only the last screenful).
- RETURN, j
- Forward one line, or count lines.
- k
- Back one line, or count lines.
- d, ^D
- Forward half a screenful. A count becomes the new half.
- u, ^U
- Back half a screenful.
- b, ^B
- Back a screenful, or count lines.
- s
- Skip count lines (one by default) and show a screenful.
- g
- Go to line count (the first by default).
- G
- Go to line count, or to the last screenful.
- /pattern
- Search forward for the countth line matching the regular expression (the basic regular expressions of ed(1)), and show a screenful starting there. A leading `!' finds a line not matching; an empty pattern repeats the last one.
- ?pattern
- The same, searching backward.
- n, N
- Repeat the last search in the same, or the opposite, direction.
- mletter
- Mark the current position with a lower-case letter.
- ´letter
- Return to that mark; `´´' returns to where the last large movement started.
- =, ^G
- Show the file name, line number, and how far through the file the display is.
- r, ^L
- Redraw the screen.
- :n, :p
- The next, or previous, file named on the command line.
- :e file
- Examine file.
- v
- Edit the current file with vi(1), then continue.
- !command
- Run command through sh(1).
- h
- A summary of the commands.
- q, :q, ZZ
- Quit.
At the end of a file the prompt says so, or names the next file; a forward command then goes on to it, or, after the last file, quits. A file that fits on one screen is shown and more exits. The arrow keys act as k, j, SPACE and b.
FILES
- MORE.INxx
- where a pipe on standard input is kept while it is paged (xx names the process), removed on exit
- MORE.CMDxx
- the `!' command on its way to the shell
SEE ALSO
DIAGNOSTICS
Exit status is 0, or 1 when a file could not be opened, or 2 on a usage error.
BUGS
A line longer than 255 characters is searched only in its first 255. Bold on the Apple //e's own text page shows as inverse, and inverse lower case is not in that character set; on the UltraTerm it is bright. The line table holds 10000 lines; past that the rest of a file is out of reach.
| September 12, 2026 | maux |