mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 15:02:09 +02:00
529 B
529 B
head
输出文件的开头部分的内容。 更多信息:https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html.
- 输出文件的前几行:
head --lines {{数目}} {{路径/到/文件}}
- 输出文件的前几个字节:
head --bytes {{数目}} {{路径/到/文件}}
- 输出文件除最后几行之外的所有内容:
head --lines -{{数目}} {{路径/到/文件}}
- 输出文件除最后几个字节之外的所有内容:
head --bytes -{{数目}} {{路径/到/文件}}