more命令

more命令类似less,以分页的形式浏览文件内容,在more命令退出后会在shell上留下操作的内容,在分页浏览时使用h键输出说明文件。

语法

more [options] [file]

参数

常用操作

示例

分页显示/var/log/ufw.log文件内容。

more /var/log/ufw.log

从第20行开始显示/var/log/ufw.log文件内容。

more +20 /var/log/ufw.log

1行分页显示/var/log/ufw.log文件内容。

more -1 /var/log/ufw.log

参考

https://www.runoob.com/linux/linux-comm-more.html
https://www.tutorialspoint.com/unix_commands/more.htm
https://alvinalexander.com/unix/edu/examples/more.shtml