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
witt 363176202c
less: add Chinese translation ()
Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-01-19 18:10:55 +01:00

36 lines
615 B
Markdown

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