less 命令用法
Once started, less willdisplay the text file one page at a time. You mayuse the Page Up and Page Down keys to move throughthe text file. To exitless,type "q". Here are some commands that
less will accept:
Command | Action |
---|---|
Page Up or b |
Scroll back one page |
Page Down or space |
Scroll forward one page |
G |
Go to the end of the text file |
1G |
Go to the beginning of the text file |
/characters |
Search forward in the text file for anoccurence of the specifiedcharacters |
n |
Repeat the previous search |
q |
Quit |