37-more Concise Notes

Source: Internet
Author: User

pagination Display of text

More [Options] file

more for pagination display text file, first appeared in BSD, but this command is very basic, then less command to enhance it, so-called lesser is more

Parameters

File is the path name of the text file that needs to be displayed on a split screen

Options

-NUM specifies the number of lines of the screen, expressed as integers

+num starting with the line number num

-D let more show the user information [press space to continue, ' Q ' to quit.]

-F makes more count logical lines instead of screen lines (long lines do not break to the next line)

-S compresses duplicate empty lines into a blank line

-U Prevent underlining

Command

More of the interactive environment is based on VI, you can use some basic commands in the more environment,

H or? Displays the command summary, which is the basic Help information

SPACE Displays the next K-line text, with the default value being the current screen size

Z Ibid.

RETURN Enter to display the next K-line text, the default value is 1

Q or Q exits

ExampleMore-num
$ more-5 Demo      1    Thank you for remembering my birthday     2    But it seems like I forgot to celebrate     3 of    Those records he might like     4    If you sent the wrong gift     5    You asked me how many candles--more--(1%)

Displays the specified number of screen lines

More +num
$ more-5 +30 Demo    It's like I forgot who he was celebrating.    He might like to    see if you sent the wrong gift.    You asked me how many candles    I need.    What kind of blessing do you want?--more--(10%)

Displayed from the specified line, where-5 is to show that the data is truncated.

more-d
        I'm really reluctant to    end this romantic mistake    . You just love silly who cares about--more--(6) [Press space to continue, ' Q ' to quit.]

Display the message, space continues, q exits

Tips

1.more is an interactive environment, similar to VI Editor, its basic command is the same as VI, H can view these commands

2.less is an enhanced version of more and more often uses less rather than more

37-more Concise Notes

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.