Linux下查看文档指令

时间:2017-03-11 13:10:16   收藏:0   阅读:200

1,cat直接查看

cat /etc/profile

2,more,less分页查看

less  /etc/profile

more /etc/profile

less -N /etc/profile 显示行号 内容

3,tail head从尾部或头部查看

head -n 10 /etc/profile  显示前10行内容

tail -n 10 /stc/profile   显示后10行的内容

tail /etc/profile 显示后10行内容,如果文档增加内容,默认显示,此指令显示日志非常好用

原文:http://www.cnblogs.com/usa007lhy/p/6534540.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!