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
605 B
Markdown
Raw Permalink Normal View History

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