Name

more

Synopsis

    more [options] [files]

Display the named files on a terminal, one screenful at a time. After each screen is displayed, press the ENTER key to display the next line or press the spacebar to display the next screenful. Press h for help with additional commands, q to quit, / to search, or :n to go to the next file. more can also be invoked using the name page.

Tip

The Mac OS X more is a hard link to less; see less for more information.

Common Options

-c

Page through the file by clearing the screen instead of scrolling. This is often faster and is much easier to read.

-d

Display the prompt Press space to continue, 'q' to quit.

-f

Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.

-l

Ignore formfeed (^L) characters.

-s

Squeeze; display multiple blank lines as one.

-u

Suppress underline characters and backspace (^H).

- n

Use n lines for each “window” (default is a full screen).

+ num

Begin displaying at line number num.

+/ pattern

Begin displaying two lines before pattern.

Solaris /usr/xpg4/bin/more Options

-e

Exit after writing the last line of the last file, instead of prompting.

-i

Ignore case when searching.

-n n

Use n lines for each “window” (default is a full screen).

-pcommand, +command

Execute more command command before showing each file.

-t tagstring

Display the screenful of the file containing the tag tagstring as defined by ctags. Processed before -p if both are given.

Solaris /usr/bin/more Options

-r

Force display of ...

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.