Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

more

Feedback

In this article

Displays one screen of output at a time.

Note

Themore command, with different parameters, is also available from the Recovery Console.

Syntax

<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

ParameterDescription
<command>Specifies a command for which you want to display the output.
/cClears the screen before displaying a page.
/pExpands form-feed characters.
/sDisplays multiple blank lines as a single blank line.
/t<n>Displays tabs as the number of spaces specified byn.
+<n>Displays the first file, beginning at the line specified byn.
[<drive>:][<path>]<filename>Specifies the location and name of a file to display.
<files>Specifies a list of files to display. Files must be separated using spaces.
/?Displays help at the command prompt.

Remarks

  • The following subcommands are accepted at themore prompt (-- More --), including:

    KeyAction
    SPACEBARPress theSPACEBAR to display the next screen.
    ENTERPressENTER to display the file one line at a time.
    fPressF to display the next file listed on the command line.
    qPressQ to quit themore command.
    =Shows the line number.
    p<n>PressP to display the nextn lines.
    s<n>PressS to skip the nextn lines.
    ?Press? to show the commands that are available at themore prompt.
  • If you use the redirection character (<), you must also specify a file name as the source.

  • If you use the pipe (|), you can use such commands asdir,sort, andtype.

Examples

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

more < clients.newtype clients.new | more

Themore command displays the first screen of information from Clients.new, and you can press the SPACEBAR to see the next screen of information.

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

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

To display the current line number at themore prompt, type:

more =

The current line number is added to themore prompt, as-- More [Line: 24] --

To display a specific number of lines at themore prompt, type:

more p

Themore prompt asks you for the number of lines to display, as follows:-- More -- Lines:. Type the number of lines to display, and then press ENTER. The screen changes to show only that number of lines.

To skip a specific number of lines at themore prompt, type:

more s

Themore prompt asks you for the number of lines to skip, as follows:-- More -- Lines:. Type the number of lines to skip, and then press ENTER. The screen changes to show that those lines are skipped.

Related links


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?