Linux View file Contents command: More

Source: Internet
Author: User

Linux more command is similar to cat, but will be displayed as a page by page, more convenient for users to read pages, and the most basic instruction is to press the blank key (space) to the next page, press the B key will be back to a page, but also the function of the search string (similar to VI), Use the instructions in the file, press H.

Grammar

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

Parameters:

-num The number of rows displayed at a time-D prompts the user to display the press space to continue for instructions at the bottom of the screen . ] Instead of ' beep '---L cancels meeting special character ^l (paper feed characters) when the function is paused when the number of rows is calculated as the number of rows in the actual number of lines, rather than after the word wrap (some single-line words that are too long will be extended to two or more lines)-p does not display each page in a scroll But first clear the screen and then display the content-c similar to-p, the difference is to display the content and then clear the other old data-s when you encounter more than two consecutive lines of blank lines, the substitution of a row of blank line-U does not display the quotation marks (according to the environment variable term specified terminal and different)+/< C3>pattern searches for the string (pattern) before each document is displayed, and then starts displaying after the string +num Displays the document filenames want to display from Num line, which is the number of complex numbers

Instance

Displays the contents of the Testfile document on a per-page basis, with two consecutive lines or more blank lines displayed in a row of blank lines.

More-s testfile

Displays the contents of the Testfile document starting at line 20th.

More +20 Testfile

Common operations

Enter down n rows, which need to be defined. The default is 1 lines Ctrl+F scroll down one screen SPACEBAR scroll down one screen Ctrl+B return to previous screen = output line number of current line: F output file name and line number of current line v call VI Editor! Command call Shell, and execute the command Q exit more

Transferred from: http://www.runoob.com/linux/linux-comm-more.html

Linux View file Contents command: More (GO)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.