【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]

posted @ 2017-01-12 14:05  炼狱腾蛇  阅读(152)  评论(0)    收藏  举报