1, Command introduction:
Less is used to page through the contents of the file, less is more powerful than more features, less can page back and forth, search before and after.
2. Command format:
Less [options] File
3. Command parameters:
-B < buffer size > Set buffer size
-e When the file display is finished, automatically leave
-F forcing special files to be opened, such as peripheral code, directories, and binaries
-G only flags the last keyword searched
-I ignores case when searching
-m shows a percentage similar to the more command
-N Displays the line number of each line
-o < file name > save less output in the specified file
-Q does not use warning tones
-S displays a row of continuous empty behavior
-S line too long will be out of the partial discard
-X < number > Displays the "tab" key as a specified number space
/string: Search down the function of "string"
String: The ability to search up "string"
N: Repeat the previous search (with/or?). About
N: Reverse repeats the previous search (and/or?) About
b Turn back one page
D Turn back half a page
H Display Help interface
Q Exit less command
U scroll forward Half page
Y Scrolls forward one line
Enter to scroll one line
SPACEBAR Scrolls one page
[PageDown]: Flip one PAGE Down
[PageUp]: Flip one page Up
Linux command: Less