mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 10:35:23 +02:00

commit 32490f087fce93beadae3c59b10c1b8200734106 Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com> Date: Sun Jan 3 23:09:09 2016 -0500 replaced spaces with underscores commit 51c680741e497aa891848e2008f55e5c316c18f0 Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com> Date: Sat Jan 2 22:23:37 2016 -0500 head args are supposed to be in bytes, rather thank KB commit 52e1aefe5bdcf05084222ec2c184bdd5ff96cc8e Author: Parth Mehrotra <parth.mehrotra.cs@gmail.com> Date: Sat Jan 2 13:31:56 2016 -0500 head args aren't in bytes
19 lines
401 B
Markdown
19 lines
401 B
Markdown
# head
|
|
|
|
> Output the first part of files
|
|
|
|
- Output the first few lines of a file
|
|
|
|
`head -n {{count_of_lines}} {{filename}}`
|
|
|
|
- Output the first few bytes of a file
|
|
|
|
`head -c {{size_in_bytes}} {{filename}}`
|
|
|
|
- Output everything but the last few lines of a file
|
|
|
|
`head -n -{{count_of_lines}} {{filename}}`
|
|
|
|
- Output everything but the last few bytes of a file
|
|
|
|
`head -c -{{size_in_bytes}} {{filename}}`
|