1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/less.md

37 lines
615 B
Markdown
Raw Normal View History

# less
> 打开一个文件进行交互式阅读,允许滚动和搜索。
> 更多信息:<https://greenwoodsoftware.com/less/>.
- 打开一个文件:
`less {{路径/到/文件}}`
- 向下/向上翻页:
`<空格键> (向下), b (向上)`
- 转到文件末尾/开头:
`G (结尾), g (开头)`
- 向前搜索字符串(按 `n`/`N` 转到下一个/上一个匹配项):
`/{{关键字}}`
- 向后搜索字符串(按 `n`/`N` 转到下一个/上一个匹配项):
`?{{关键字}}`
- 跟踪当前打开的文件的输出:
`F`
- 在编辑器中打开当前文件:
`v`
- 退出:
`q`