Files
tldr/pages.zh/common/less.md

36 lines
617 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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