Easy Tutorial
❮ Linux Comm Mmove Linux Comm Mke2Fs ❯

Linux more Command

Linux Command Manual

The Linux more command is similar to cat, but it displays the content one page at a time, making it more convenient for users to read through the content page by page. The basic commands include pressing the space bar to display the next page, pressing the 'b' key to go back one page, and it also has a search functionality (similar to vi). For help on using the command, press 'h'.

Syntax

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

Parameters:

Example

Displays the content of testfile one page at a time, replacing multiple consecutive blank lines with one blank line.

more -s testfile

Displays the content of testfile starting from the 20th line.

more +20 testfile

Common Operation Commands

Linux Command Manual

❮ Linux Comm Mmove Linux Comm Mke2Fs ❯