Report issue Add example

more

Display file content, one screen at a time

Description

The more command is a text filter based on the vi editor for paging through text files. It displays the content of a text file one screen at a time and supports basic vi-like navigation. It has several built-in shortcut keys, commonly including H (help), Enter (scroll down one line), Space (scroll down one screen), and Q (exit).

This command displays one screen of text at a time. After a full screen, it pauses and displays a prompt at the bottom of the screen, showing the percentage of the file displayed so far: --More-- (XX%). You can respond to the prompt in several ways:

Syntax

more [options] [file]

Options

-<number>: Specify the number of lines to display per screen.
-d: Display "[press space to continue, 'q' to quit.]" and "[Press 'h' for instructions]".
-c: Do not scroll. Instead, clear the screen and then display the text.
-s: Squeeze multiple blank lines into one.
-u: Suppress underlining.
+<number>: Start displaying from the specified line number.

Parameters

File: Specifies the file to be displayed page by page.

Examples

Display the content of file, clearing the screen before displaying and showing the completion percentage at the bottom.

more -dc file

Display the content of file 10 lines at a time, clearing the screen before each display.

more -c -10 file