add page for head in mac and linux
This commit is contained in:
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}}`
|
Reference in New Issue
Block a user