More


Applies To: Windows Vista,Windows Server 2008

Displays one screen of output at a time.

For examples of how to use this command, see Examples.

Syntax


Copy Code

<Command> | more [/c] [/p] [/s] [/t<N>] [+<N>]
more [[/c] [/p] [/s] [/t<N>] [+<N>]] < [<Drive>:][<Path>]<FileName>
more [/c] [/p] [/s] [/t<N>] [+<N>] [<Files>]

Parameters

Parameter

Description

<Command>

Specifies a command for which you want to display the output.

/c

Clears the screen before displaying a page.

/p

Expands form-feed characters.

/s

Displays multiple blank lines as a single blank line.

/t<N>

Displays tabs as the number of spaces specified by N.

+<N>

Displays the first file beginning at the line specified by N.

[<Drive>:] [<Path>]<FileName>

Specifies the location and name of a file to display.

<Files>

Specifies a list of files to display. Separate file names with a space.

/?

Displays help at the command prompt.

Remarks

Key

Action

SPACEBAR

Displays the next page.

ENTER

Displays the next line.

f

Displays the next file.

q

Quits the more command.

=

Shows the line number.

p <N>

Displays the next N lines.

s <N>

Skips the next N lines.

?

Shows the commands that are available at the more prompt.

Examples

To view the first screen of information of a file named Clients.new, type one of the following commands:


Copy Code

more < clients.new
type clients.new | more

The more command displays the first screen of information from Clients.new, and then displays the following prompt:


Copy Code

-- More --

You can then press the SPACEBAR to see the next screen of information.

To clear the screen and remove all extra blank lines before displaying the file Clients.new, type one of the following commands:


Copy Code

more /c /s < clients.new
type clients.new | more /c /s

The more command displays the first screen of information from Clients.new, and then displays the following prompt:


Copy Code

-- More --

Using more subcommands

The following examples can be used at the more prompt (-- More --).


Copy Code

-- More [Line: 24] --


Copy Code

-- More -- Lines:

Type the number of lines to display, and then press ENTER. More displays the specified number of lines.


Copy Code

-- More -- Lines:

Type the number of lines to skip, and then press ENTER. More skips the specified number of lines and displays the next screen of information.

Additional references

Command-Line Syntax Key