more
Updated: January 21, 2005
Syntax
more [[/c] [/p] [/s] [/tN] [+N]] < [Drive:] [Path] FileName
more [/c] [/p] [/s] [/tN] [+N] [Files]
Parameters
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 pN Display next N lines sN 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
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 |