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

原文地址:https://www.cnblogs.com/Equilibrium/p/6628866.html