Linux下查看文档指令

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行内容,如果文档增加内容,默认显示,此指令显示日志非常好用

原文地址:https://www.cnblogs.com/usa007lhy/p/6534540.html