一天一条linux命令之more
more命令类似cat,不过是分页显示的。
more --help 可查看命令参数使用方法。用more分页打开的文件,操作类似于vi,故在vi节介绍。
more -n fileName 每次显示n行。当然具体使用时把n换为具体数字。
www.atcpu.com more +n fileName 从第n行开始显示。
more -d fileName 会在最下面一行显示空格下一页,q退出的提示。
more -p fileName 当显示下一页时,相当于先输出clear再翻页。
more +/hello fileName fileName文件从hello处开始显示。如果文件中没有,会显示没有匹配的