What is the difference between more and less commands in Linux system

The function of the more command: Pause the screen when it displays a full page. At this time, you can press the space key to continue to display the next screen, or press the Q key to stop the display.

The function of the less command: The usage of the less command is similar to that of the more command, and it can also be used to browse files with more than one page. The difference is that the less command can use the up and down keys to scroll the file in addition to pressing the space bar to display the file downward. When you want to end browsing, just press the Q key at the prompt ":" of the less command.
They can be similar, but differ in browsing habits and display methods.
Name : less

Access rights: all users

Using methods:

less [Option] filename
The function of less is very similar to that of more, and both can be used to browse the content of text files , the difference is that less allows users to scroll back

to browse the parts they have seen, and because less does not read the entire file at the beginning, it will be more difficult to edit than ordinary documents when it encounters the opening of large files. Tools (such as vi) come quickly.

Name: more

Access: All users

Access : more [-dlfpcsu] [-num] [+/pattern] [+linenum] [fileNames..]

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327017991&siteId=291194637