1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 15:02:09 +02:00
tldr/pages.zh/linux/head.md
witt 585b133a38
head: add Chinese translation (#15493)
* head: add zh translation

* head: update chinese translation
2025-01-15 18:19:36 +08:00

529 B

head

输出文件的开头部分的内容。 更多信息:https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html.

  • 输出文件的前几行:

head --lines {{数目}} {{路径/到/文件}}

  • 输出文件的前几个字节:

head --bytes {{数目}} {{路径/到/文件}}

  • 输出文件除最后几行之外的所有内容:

head --lines -{{数目}} {{路径/到/文件}}

  • 输出文件除最后几个字节之外的所有内容:

head --bytes -{{数目}} {{路径/到/文件}}