Instructions - Linux Instructions: File Directory Management--more

Instructions - Linux Instructions: File Directory Management --more
Name: more
Access Rights: All Users
Usage : more [-dlfpcsu] [-num] [+/pattern] [+linenum] [fileNames..]
Description: Similar to cat, but it will be displayed page by page to facilitate users to read page by page, and the most basic command is to press the space key (space) to display the next page, and press the b key to go back (back) one page. display, and there is also a search string function (similar to vi), for the documentation in use, press h .
Parameters: -num Number of lines displayed at one time
-d Prompt the user to display [Press space to continue, 'q' to quit.] at the bottom of the screen, if the user presses the wrong key, it will display [Press 'h' for instructions .] instead of 'beep'
-l cancel the function that will pause when encountering a special character ^L (feed character)
-f when calculating the number of lines, use the actual number of lines, not the number of lines after word wrap (Some single-line characters that are too long will be expanded to two or more lines)
-p does not display each page in a scrolling manner, but first clears the screen and then displays the content
-c is similar to -p, the difference is Display the content first and then clear other old data
-s When encountering a blank line with more than two consecutive lines, replace it with a blank line of one line
-u Do not display the lower quotation marks (different according to the terminal specified by the environment variable TERM)
+ / Search for this string (pattern) before each file is displayed, then start to display after this string
+num Display from line num
fileNames The file whose content is to be displayed, which can be plural.
Example :
more -s testfile Display the file content of testfile page by page. If there are more than two consecutive blank lines, it will be displayed as a blank line.
more +20 testfile Displays the file contents of testfile starting from line 20.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326413652&siteId=291194637