Name: less
Permission: All Users
Usage: less [Option] filename
Note:The role of less is very similar to that of more. It can be used to browse the content of text files. The difference is that less allows users to scroll back to browse the content that has already been viewed, at the same time, because less does not read the entire file at the beginning, opening a large file will be faster than the general document Editor (such as VI.
Name: More
Permission: All Users
Usage: more [-dlfpcsu] [-num] [+/pattern] [+ linenum] [filenames ..]
Note:Similar to CAT, but it will be displayed on one page for users to read one page by one, and the most basic command is to display it on the next page by pressing the Space key, press the B key to display the back page and search for strings (similar to VI). In the instruction file in use, press H.
.
Parameter:-num indicates the number of rows displayed at a time.
-D prompts the user to display [Press space to continue, 'q' to quit.] at the bottom of the screen. if you press the wrong key, [Press 'H' for instructions.] is displayed. instead of 'beeping'
-L cancel the function that will be paused when a special character ^ L (Paper delivery character) is encountered
-F indicates the number of rows calculated based on the actual number of rows, rather than the number of rows after the automatic line feed (some rows with too long words will be extended to two or more rows)
-P does not display each page in a scroll mode, but clears the screen before displaying the content.
-C is similar to-P. The difference is that the content is displayed before other old data is cleared.
-S: if there are two or more blank rows in a row, it is replaced by a blank row.
-U does not display the quotation marks (it varies depending on the terminal specified by the Environment Variable term)
+/Search for this string (pattern) before each file is displayed, and then start to display it after this string.
+ Num is displayed from row num.
The number of files filenames want to display.
Example:
More-s testfile displays the file content of testfile page by page. If there are two or more lines of blank lines in a row, the lines are displayed as one line of blank lines.
More + 20 testfile: the content of the file testfile is displayed from row 20th.
Http://kooyee.javaeye.com/blog/406937