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.