Linux Basic Command--more

Source: Internet
Author: User

One, more commands


More features like cat, the Cat command is the contents of the file are completely displayed on the screen from top to bottom. More will be a page-by-page display to facilitate users to read pages, and the most basic instruction is to press the blank key (space) on the next page, press the B key will be back to a page, but also the function of the search string. The more command reads the file backwards from the front, so it loads the entire file at startup.


1. Command format:


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



2. Command parameters:


+n starting from joys N rows


-N defines the screen size as n rows


+/pattern searches for the string before each file is displayed, and then starts from the first two lines of the string


-C clear the screen from the top and then display


-D hint "press space to continue, ' Q ' To quit (press SPACEBAR to continue, pressing Q key to exit)", disable the ringing function


-L ignores Ctrl+l (page break) characters


-p to page a file by clearing the window instead of scrolling, similar to the-C option


-S displays a contiguous number of empty rows as a row


-U Remove the line from the contents of the file


3. Common Operation Commands:


Enter down n rows, which need to be defined. Default is 1 rows


CTRL+F Scroll down one screen


Space bar scroll down one screen


Ctrl+b Back to previous screen


= Output the line number of the current line


: F output File name and line number of the current line


V Call VI Editor


command to invoke the shell and execute the command


Q Exit More


This article is from the "10858195" blog, please be sure to keep this source http://10868195.blog.51cto.com/10858195/1942006

Linux Basic Command--more

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.