Skip to content

head

FunctionShows the first N lines of a page or piped input. The default is 10 lines.
OptionsUse head N or head -n N with a page path or piped input.
Limitationshead requires a page path or piped input.
$ head ./page1
$ head 3 ./page1
$ ls | head 3
$ cat ./page1 | head