mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
add page for head in mac and linux
This commit is contained in:
parent
4909ce329b
commit
195d8d34f9
2 changed files with 30 additions and 0 deletions
19
pages/linux/head.md
Normal file
19
pages/linux/head.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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 kilobytes}} {{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 kilobytes}} {{filename}}`
|
11
pages/osx/head.md
Normal file
11
pages/osx/head.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# 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 {{number in kilobytes}} {{filename}}`
|
Loading…
Add table
Reference in a new issue