cat命令 cat命令——显示文件内容 命令所在路径:bin/cat 示例1: # cat /etc/hosts 查看/etc/目录下的hosts文件 示例2: # cat -n /etc/hosts -n作用是显示行号,如下图