1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/linux/head.md
Managor a70b923d8f
*: add option placeholders to translations (#15933)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-19 00:36:34 +02:00

565 B

head

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

  • 输出文件的前几行:

head {{[-n|--lines]}} {{数目}} {{路径/到/文件}}

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

head {{[-c|--bytes]}} {{数目}} {{路径/到/文件}}

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

head {{[-n|--lines]}} -{{数目}} {{路径/到/文件}}

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

head {{[-c|--bytes]}} -{{数目}} {{路径/到/文件}}