cat(查看)
在root目录中创建一个 文件 file1
输入命令 [[email protected] ~]# cat file1
命令行中结果为将文档中内容全部展示出来
more(翻页)
在命令行中输入命令 [[email protected] ~]# more file1
结果未全部显示
然后敲击一次回车 显示一行内容
或者敲击一次空格 结果全部显示
head(头部)
输入命令 [[email protected] ~]# head file1
结果为展示前10行命令
展示前三行命令
输入命令 [[email protected] ~]# head -3 file1
tail(尾部)
输入命令 [[email protected] ~]# tail file1
结果为最后10行命令
展示最后三行命令
输入命令 [[email protected] ~]# tail -3 file1