linux(cat,more,less,head)——对文件显示进行查看操作

 

cat:文件按照指定样式全显示

more:往后翻滚

less:双向滚动

head:头10行

tail:后10行

 

提问:显示/etc/httpd/conf/httpd.conf的11-20行??

答案:head -20 httpd.conf|tail -10

posted @ 2017-03-27 21:20  Nobility  阅读(283)  评论(0编辑  收藏  举报