mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
20 lines
562 B
Markdown
20 lines
562 B
Markdown
# head
|
|
|
|
> 파일의 첫 부분을 출력합니다.
|
|
> 더 많은 정보: <https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html>.
|
|
|
|
- 파일의 처음 몇 줄을 출력:
|
|
|
|
`head --lines {{개수}} {{경로/대상/파일}}`
|
|
|
|
- 파일의 처음 몇 바이트를 출력:
|
|
|
|
`head --bytes {{개수}} {{경로/대상/파일}}`
|
|
|
|
- 파일의 마지막 몇 줄을 제외하고 출력:
|
|
|
|
`head --lines -{{개수}} {{경로/대상/파일}}`
|
|
|
|
- 파일의 마지막 몇 바이트를 제외하고 출력:
|
|
|
|
`head --bytes -{{개수}} {{경로/대상/파일}}`
|