Linux more command using tutorial

  

Name: more Usage rights: All users use: more [-dlfpcsu] [-num] [+/pattern] [+linenum] [fileNames..] Description: Similar to cat, However, the page-by-page display is convenient for the user to read page by page, and the most basic instruction is to press the space button to display the next page, press the b button to display the page back, and There is also the ability to search for strings (similar to vi), and the documentation in use, press h. Parameters: -num The number of lines displayed at a time -d prompts the user to display [Press space to continue, 'q' to quit.] at the bottom of the screen. If the user presses the wrong button, [Press 'h' for instructions will be displayed. .] instead of '哔' sound -l cancels the function that pauses when a special character ^L (feeding character) is canceled -f When calculating the number of lines, the actual number of lines, not the number of lines after automatic wrapping (Some single-line words are too long to 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, except Display content first and then clear other old data -s When there are two consecutive lines of blank lines, replace them with one line of blank lines -u does not display the following quotation marks (depending on the terminal specified by the environment variable TERM) + /Search for the pattern before each file is displayed, and then display +num from the beginning of the string. Display the fileNames from the num line. The file to be displayed can be a plurality of files. Examples: more -s testfile testfile-by-page display of the contents of the file, if more than two consecutive blank lines places a line blank lines. More +20 testfile Displays the contents of the testfile from line 20.

Copyright © Windows knowledge All Rights Reserved