zoukankan      html  css  js  c++  java
  • linux基础命令-文件查看类命令cat/tac/more/less/tail/head

    cat 查看文本文件内容

    -b :给每一行编号不包括空白行

    -n:给所有行编号

    [root@host01 tmp]# cat -An /root/anaconda-ks.cfg 
         1    # Kickstart file automatically generated by anaconda.$
         2    $
         3    #version=DEVEL$
         4    install$
         5    cdrom$
         6    lang en_US.UTF-8$
         7    keyboard us$
         8    network --onboot no --device eth0 --bootproto dhcp --noipv6$
         9    rootpw  --iscrypted $6$WcPbmXB0J/pnlOQB$m8f5TaBOgQ.ipHT4kkkx4eYRqfL3D629ggzC3ryVp68H8mXfhaM.eAl0J3kkmI4j0BPn20usTvMdoLxfbw1lf/$
        10    firewall --service=ssh$
        11    authconfig --enableshadow --passalgo=sha512$
        12    selinux --enforcing$
        13    timezone --utc Asia/Shanghai$
        14    bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"$
        15    # The following is the partition information you requested$
        16    # Note that any partitions you deleted are not expressed$
        17    # here so unless you clear all partitions first, this is$
        18    # not guaranteed to work$
        19    #clearpart --all --drives=sda$
        20    $
        21    #part /boot --fstype=ext4 --size=500$
        22    #part pv.008002 --grow --size=1$
        23    $
        24    #volgroup vg_host01 --pesize=4096 pv.008002$
        25    #logvol / --fstype=ext4 --name=lv_root --vgname=vg_host01 --grow --size=1024 --maxsize=51200$
        26    #logvol swap --name=lv_swap --vgname=vg_host01 --grow --size=1984 --maxsize=1984$
        27    $
        28    repo --name="CentOS"  --baseurl=cdrom:sr0 --cost=100$
        29    $
        30    %packages --nobase$
        31    @core$
        32    %end[root@host01 tmp]# cat -An /root/anaconda-ks.cfg 

    -

  • 相关阅读:
    2019春第八周作业
    2019春第七周作业
    第六周作业
    币值转换
    打印沙漏
    秋季学期学习总结
    人生影响最大的三位老师
    自我介绍
    2018秋季学习总结
    自己
  • 原文地址:https://www.cnblogs.com/me80/p/7406833.html
Copyright © 2011-2022 走看看