Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux more command

Linux more command

Linux Command Reference Linux Command Reference

The Linux more command is similar to cat, but displays content page by page, which is more convenient for users to read page by page. The most basic command is to press the space bar to display the next page, and press b to go back one page. It also has a string search function (similar to vi). For help while in use, press h.

Syntax

more [-dlfpcsu] [-num] [+/pattern] [+linenum] [fileNames..]

Parameters:

Example

Display the content of the testfile document page by page; if there are two or more consecutive blank lines, display them as a single blank line.

more -s testfile

Display the content of the testfile document starting from line 20.

more +20 testfile

Common operation commands

Linux Command Reference Linux Command Reference