Name

more — \windows\system32\more.com

Synopsis

Display the contents of a file with the output of another command, but pause the display so that only one screen of text is shown at a time.

Syntax

more /e [/c] [/p] [/s] [/tn] [+n] [filename]

more [/e [/c] [/p] [/s] [/tn] [+n]] < filename

                        {some other command} | more [/e [/c] [/p] [/s] [/tn] [+n]]

Description

more displays one screen of text at a time. more is often used as a filter with other commands that may send a lot of output to the screen (i.e., to read standard input from a pipe or redirected file). Press any key to see the next screenful of output. Press Ctrl-C to end the output before it is done.

more accepts the following options:

filename

Specifies the name of a file to display.

/c

Clears the screen before displaying file.

/e

If the /e option is specified, the following additional extended commands are available at the — More — prompt:

P n

Displays next n lines.

S n

Skips next n lines.

Spacebar

Displays next page.

Enter

Displays next line.

F

Displays next file.

Q

Quits.

=

Shows line number.

?

Shows help.

/p

Expands form-feed characters.

/s

Squeezes multiple blank lines into a single line.

/t n

Expands tabs characters to n spaces (default 8).

+ n

Starts display of the file at line n.

filename

Specifies the name of a file to display.

Examples

Display the contents of \Windows\readme.txt and pause for each screenful of text (both of the following examples have the same effect):

C:\>more c:\windows\readme.txt
C:\>type c:\windows\readme.txt ...

Get Windows XP in a Nutshell, Second 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.