Update less.md (#452)

更新less命令
This commit is contained in:
c2ch 2022-11-18 18:09:21 +08:00 committed by GitHub
parent 4cbaf2acc6
commit a36af1f528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,23 @@ less(选项)(参数)
```shell ```shell
sudo less /var/log/shadowsocks.log sudo less /var/log/shadowsocks.log
/字符串:向下搜索"字符串"的功能
?字符串:向上搜索"字符串"的功能
n继续向后搜索
N向前搜索
b: 向后翻一页
d: 向后翻半页
u: 向前滚动半页
y: 向前滚动一行
Q: 退出less 命令
空格键: 滚动一页
回车键: 滚动一行
[pagedown] 向下翻动一页
[pageup] 向上翻动一页
G: 移动到最后一行
g: 移动到第一行
``` ```