Simple Linux Command Line notes: More

Source: Internet
Author: User
ArticleDirectory
    • Parameters
    • Option
    • Command
    • Example
    • Tips

Display text by PAGE

More [Options]File

 

MoreThis command is used to display text files by page, which first appears in BSD. However, this command is very basic and laterLessCommand to enhance it, the so-called less is more

 

Parameters

File YesMorePath Name of the text file to be displayed on the split screen

 

Option

-Num: specifies the number of rows on the screen (expressed as an integer)

+ Num is displayed from the row number num.

-D ask more to display information to users [Press space to continue, 'q' to quit.]

-F enables more to count logical rows instead of screen rows (long rows are not broken to the next row)

-S compresses repeated empty rows into one empty row

-U to prevent underline

 

Command

The more interactive environment is based onVIYou can use some basic commands in the more environment,

H or? Displays command summaries, that is, basic help information.

Space displays the next K lines of text. The default value is the current screen size.

Z same as above

Return enter key to display the next K lines of text. The default value is 1.

Q or Q exit

 

 

Example More-num
 
$More-5Demo1Thank you for remembering my birthday.2But I forgot who to celebrate.3He may like those records.4Are you sending the wrong gift?5How many candles do you want?-- More --(1%)

Display the specified number of screens

 

More + num
$More-5+30Demo30But I forgot who to celebrate.31He may like those records.32Are you sending the wrong gift?33How many candles do you want?34What kind of blessings do you want?-- More --(10%)

It is displayed from the specified row. Here,-5 is used to show the short and good data truncation.

More-d
21I really can't bear it22Ending this romantic mistake23You're just crazy. Who cares?-- More --(6%) [Press space to continue,'Q'To quit.]

The prompt message is displayed. Space continues and Q exits.

 

Tips

1. More is an interactive environment. Similar to the VI Editor, its basic commands are the same as those of vi. h can view these commands.

2. Less is the enhanced version of more. More often, less is used instead of 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.