less [option] filename
- less读文件
- space : page down
- b(back) : page up
- g : go to the top of the file
- G : go to the bottom of the file
- 回车键 :向下滚动一行
- /... : 搜索关键词
Option
- -N 显示行号
- -e 当文件显示结束后,自动离开
博客介绍了less命令读取文件的用法,格式为less [option] filename。还说明了操作快捷键,如space键下翻页、b键上翻页等,以及搜索关键词的方法。同时列举了选项,如 -N 显示行号、-e 文件显示结束后自动离开。
Option

被折叠的 条评论
为什么被折叠?