Dela via


More

Displays one screen of output at a time.

Syntax

command | more [/c] [/p] [/s] [/tn] [**+**n]

more [[/c] [/p] [/s] [/tn] [+n]] < [Drive:] [Path] FileName

more [/c] [/p] [/s] [/tn] [**+**n] [files]

Parameters

[ Drive : ] [ Path ] FileName   : Specifies the file to display.

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

/c   : Clears screen before displaying page.

/p   : Expands form-feed characters.

/s   : Changes multiple blank lines to one blank line.

/t n   : Changes tabs to the number of spaces specified by n.

+ n   : Displays first file beginning at the line specified by n.

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

/?   : Displays help at the command prompt.

Remarks

  • Using more at the Recovery Console

    The more command, with different parameters, is available from the Recovery Console.

  • Using more subcommands

    The following commands are accepted at the more prompt (-- More --).

    Key

    Action

    SPACEBAR

    Display next page

    ENTER

    Display next line

    f

    Display next file

    q

    Quit

    ?

    Show available commands

    =

    Show line number

    p n

    Display next n lines

    s n

    Skip next n lines

  • Sources of data

    When using the redirection character (<), you must specify a file name as the source. When using the pipe (|), you can use such commands as dir, sort, and type.

Examples

To view the file named Clients.new that you want to view on your screen, type either of the following two commands:

more < clients.new 

type clients.new | more 

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

-- 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 either of the following two commands:

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 the following prompt appears:

-- More --

To display the file one line at a time, press ENTER.

To display the next page, press the SPACEBAR.

To display the next file listed on the command line, type f.

To quit more, type q.

Add commands to the more prompt as shown in this example:

-- More [Options: psfq=<space><ret>] --

To display the current line number, type =. The current line number is added to the more prompt as shown in this example:

-- More [Line: 24] --

To display a specific number of lines, type p. More prompts you for the number of lines to display as follows:

-- More -- Lines:

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

To skip a specific number of lines, type s. More prompts you for the number of lines to skip as follows:

-- 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.

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Dir

Sort

Type

Using filters

Using command redirection operators

Command-line reference A-Z