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