Provided by: manpages-zh_1.6.3.6-1_all bug

名称

       head - 输出文件的起始部分

概述

       head [选项]... [文件]...

描述

       将文件列表中每个文件的起始10行内容输出至标准输出。如果指定多个文件,则会在每个文件的部分之
       前添加给定文件名称。

       如果没有指定文件,或者指定文件为“-”,则从标准输入读取。

       必选参数对长短选项同时适用。

       -c, --bytes=[-]NUM
              显示每个文件的前 NUM 个字节;以 '-' 起始,则显示每个文件中不包含最后 NUM 个字节的全
              部内容

       -n, --lines=[-]NUM
              显示前 NUM 行而不是前10行;以 '-' 起始,则显示每个文件中不包含最后 NUM 行的全部内容

       -q, --quiet, --silent
              不显示给出文件名的首部

       -v, --verbose
              显示给出文件名的首部

       -z, --zero-terminated
              以 NUL 作为行的分隔符,而非换行符

       --help 显示此帮助信息并退出

       --version
              显示版本信息并退出

       NUM  may  have  a multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB
       1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.   Binary  prefixes  can  be
       used, too: KiB=K, MiB=M, and so on.

作者

       由 David MacKenzie 和 Jim Meyering 编写。

报告错误

       GNU coreutils 的在线帮助: <https://www.gnu.org/software/coreutils/>
       GNU coreutils 的在线帮助: <https://www.gnu.org/software/coreutils/>

版权

       Copyright  ©  2020  Free  Software  Foundation, Inc.  License GPLv3+: GNU GPL version 3 or
       later <https://gnu.org/licenses/gpl.html>.
       This is free software: you are free to change and redistribute it.  There is NO  WARRANTY,
       to the extent permitted by law.

参见

       tail(1)

       完整文档请见: <https://www.gnu.org/software/coreutils/head>
       或者在本地使用: info '(coreutils) head invocation'

       本页面中文版由中文 man 手册页计划提供。
       中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh