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]] <filenamemore [/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:
-
Pn Displays next
nlines.-
Sn Skips next
nlines.-
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.
-
/tn Expands tabs characters to
nspaces (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): ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access