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:

Keyboard commands for the less program
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


posted @ 2011-08-07 08:55  bambreeze  阅读(152)  评论(0编辑  收藏  举报