From a36af1f528182eb0377226ba0cfacc3628e8761a Mon Sep 17 00:00:00 2001 From: c2ch <35028011+c2ch@users.noreply.github.com> Date: Fri, 18 Nov 2022 18:09:21 +0800 Subject: [PATCH] Update less.md (#452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新less命令 --- command/less.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/command/less.md b/command/less.md index 9e8d8064f2..9f6ab45950 100644 --- a/command/less.md +++ b/command/less.md @@ -34,6 +34,23 @@ less(选项)(参数) ```shell sudo less /var/log/shadowsocks.log + +/字符串:向下搜索"字符串"的功能 +?字符串:向上搜索"字符串"的功能 +n:继续向后搜索 +N:向前搜索 +b: 向后翻一页 +d: 向后翻半页 +u: 向前滚动半页 +y: 向前滚动一行 +Q: 退出less 命令 +空格键: 滚动一页 +回车键: 滚动一行 +[pagedown]: 向下翻动一页 +[pageup]: 向上翻动一页 +G: 移动到最后一行 +g: 移动到第一行 + ```