more

more

The more command is used to display the contents of a text file on the terminal, one page at a time. This command is supported only for reading from a pipe. You can use the following key strokes along with this command to view the contents of a file:

  • RETURN (ENTER) - Scrolls up to display an additional line.

  • SPACE - Displays the next page.

  • q - Returns to the command prompt.

Note: This command does not support any options.

Example:

cat one.txt | more

This command enables you to view the contents of the one.txt file, one page at a time.