Skip to content

MORE Windows Command Guide

The MORE command in Windows allows users to view text files one screen at a time. By using this command, you can navigate through lengthy files easily and efficiently. Discover how to utilize the MORE command to enhance your command line experience.

MORE Syntax:

Terminal window
more [+/pattern] [filename]

Options:

OptionDescription
+/Starts displaying the file from the line that matches the specified pattern.

Parameters:

ParameterDescription
filenameSpecifies the location and name of the file to display using the more command.

MORE Command Samples:

Display Contents of a Text File

Terminal window
more file.txt

This command displays the content of the “file.txt” on the console.

View Multiple Files

Terminal window
more file1.txt file2.txt

Displays the content of “file1.txt” and “file2.txt” sequentially using the more command.

Scroll Through Text Page by Page

Terminal window
more /P file.txt

Enables paging through the content of “file.txt” one page at a time.

Display Line Numbers

Terminal window
more /N file.txt

Shows the content of “file.txt” with line numbers displayed for each line.

Scroll a Specific Number of Lines

Terminal window
more +10 file.txt

Displays the content of “file.txt” starting from the 10th line.

Pipe Output to More

Terminal window
dir | more

Uses the pipe operator to send the output of the “dir” command to more for page-by-page viewing.

Paginate Long Output

Terminal window
dir /s | more

Displays the output of the “dir /s” command in a paginated format using the more command.

MORE FAQ:

How do I use more in Windows?

To use the more command in Windows, execute the following command:

Terminal window
more <filename>

What options can I use with the more command in Windows?

To view a list of available options for the more command in Windows, use the following command:

Terminal window
more /?

How can I display line numbers with the more command in Windows?

To display line numbers along with the content using the more command in Windows, you can use the following command:

Terminal window
more /c <filename>

How do I search for a specific string while using the more command in Windows?

To search for a specific string within the content displayed by the more command in Windows, use the following command:

Terminal window
more <filename> | findstr "search_string"

Can I use the more command to display the output of another command in Windows?

Yes, you can pipe the output of another command to the more command in Windows. Here is an example:

Terminal window
dir | more

How do I concatenate multiple files and display them using the more command in Windows?

To concatenate multiple files and display their content using the more command in Windows, use the following command:

Terminal window
type file1.txt file2.txt | more

Applications of the MORE Command

  1. Viewing the contents of a text file
  2. Paging through long outputs in the command prompt
  3. Displaying one screen of text at a time
  4. Reading text documents without opening them in an editor