zoukankan      html  css  js  c++  java
  • 【Linux】【Commands】文本查看类

    分屏查看命令:more和less

      more命令:

        more FILE

        特点:翻屏至文件尾部后自动退出;

      less命令:

        less FILE

      head命令:

        查看文件的前n行:

          head [option] FILE

            -n #

            -#

      tail命令:

        查看文件的后n行:

          tail [option] FILE

            -n #

            -#

            -f:查看文件尾部内容后不退出,跟随显示新增的行

      stat命令:

        stat - display file or file system status

        stat [OPTION]... FILE...

        

        文件:两类数据

          元数据:metadata

          数据:data

        时间戳:

          access time:atime

          modify time:mtime

          change time:ctime

      touch命令:

        touch - change file timestamps

        touch [OPTIONS]... FILE...

          -c:指定的文件路径不存在时不予创建

          -a:仅修改access time

          -m:仅修改modify time

          -t STAMP:

            [[CC]YY]MMDDhhmm[.ss]

  • 相关阅读:
    IP寻址方式三
    IP通信基础4
    IP通信基础3
    IP通信基础2
    IP通信基础 1
    IP通信基础
    IP通信原理第二周
    设备选型
    常用virsh命令记录
    [转]enable spice html5 console access in openstack kilo(centos)
  • 原文地址:https://www.cnblogs.com/demonzk/p/6277990.html
Copyright © 2011-2022 走看看