less命令

less  a.log

G - 移动到最后一行

g - 移动到第一行

/字符串:向下搜索"字符串"的功能

?字符串:向上搜索"字符串"的功能

b 向后翻一页

d 向后翻半页

u 向前滚动半页

空格键 滚动一页

[pagedown]: 向下翻动一页

[pageup]: 向上翻动一页

q / ZZ - 退出 less 命令

原文地址:https://www.cnblogs.com/banml/p/10956150.html