cat命令

  • 概述
    文件文本查看工具
  • 选项
    -n:给显示的文本行编号
    -E:显示行结束符$
  • 实例
    [root@localhost ~]# cat /etc/fstab 
    [root@localhost ~]# cat -n /etc/fstab 
     1  
     2  #
     3  # /etc/fstab
     4  # Created by anaconda on Mon Aug  6 17:47:50 2018
     5  #
     6  # Accessible filesystems, by reference, are maintained under '/dev/disk'
     7  # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
     8  #
     9  /dev/mapper/centos-root /                       xfs     defaults        1 1
    10  UUID=bd40ba81-2c3a-4234-8057-816e098a03fd /boot                   xfs     defaults        1 2
    11  /dev/mapper/centos-home /home                   xfs     defaults        1 2
    12  /dev/mapper/centos-swap swap                    swap    defaults        0 0
上一篇:rhel7.5调整lvm分区配置挂载无法启动解决方法记录


下一篇:磁盘分区(2):格式化与挂载文件系统