Linux more 命令

命令介绍

more 命令类似 cat,不过会以一页一页的形式显示,更方便使用者逐页阅读,而最基本的指令就是按 space 就往下一页显示,按 b 键就会往回一页显示。

参数介绍

1、-s 当遇到有连续两行以上的空白行,就代换为一行的空白行。

more 和 less 的区别

1、less 不必读整个文件,加载速度会比 more 更快。
2、less 退出后不会留下刚显示的内容,而 more 退出后会。

例子:查看日志信息

more -s logfile.log
原文地址:https://www.cnblogs.com/feiqiangsheng/p/15699077.html