Linux之cat指令

cat指令,以只读的方式查看文件

cat 文件名
cat /etc/profile
查看显示行号
cat -n 文件名
cat -n /etc/profile

以上方式没有分页显示,要分页显示如下,按空格查看下一页

cat 文件名 | more
cat /etc/profile | more
cat -n /etc/profile | more

发布了48 篇原创文章 · 获赞 0 · 访问量 282

猜你喜欢

转载自blog.csdn.net/qq_44971387/article/details/105323458