Linux Comm More
# Linux more command
[ Linux Command Manual](#)
The Linux `more` command is similar to `cat`, but it displays content page by page, making it more convenient for users to read page by page. The most basic instruction is to press the spacebar to display the next page, press the 'b' key to go back (back) one page, and it also has a string search function (similar to vi). For instructions while using it, press 'h'.
### Syntax
more [+/pattern] [+linenum] [fileNames..]
**Parameters**:
* -num Number of lines to display at once
* -d Prompts the user, displaying [Press space to continue, 'q' to quit.] at the bottom of the screen. If the user presses the wrong key, it displays [Press 'h' for instructions.] instead of a beep sound
* -l Disables the pause function when encountering the special character ^L (form feed character)
* -f Counts lines based on the actual number of lines, not the number after automatic line wrapping (some single lines with too many characters may be expanded to two or more lines)
* -p Does not display each page by scrolling, but clears the screen first before displaying content
* -c Similar to -p, but displays content first and then clears other old data
* -s When encountering two or more consecutive blank lines, replaces them with a single blank line
* -u Does not display underscores (varies depending on the terminal specified by the environment variable TERM)
* +/pattern Searches for the string (pattern) before displaying each document, then starts displaying from after that string
* +num Starts displaying from line num
* fileNames Documents whose content is to be displayed, can be multiple
### Examples
Display the content of testfile page by page, replacing two or more consecutive blank lines with a single blank line.
more -s testfile
Display the content of testfile starting from line 20.
more +20 testfile
### Common Operation Commands
* Enter Move down n lines, needs to be defined. Default is 1 line
* Ctrl+F Scroll down one screen
* Spacebar Scroll down one screen
* Ctrl+B Scroll back up one screen
* = Output the line number of the current line
* οΌf Output the filename and the line number of the current line
* V Invoke the vi editor
* !command Invoke the Shell and execute the command
* q Quit more
[ Linux Command Manual](#)
YouTip