Skip to content

head

FunctionFirst N lines of a page body, or of stdin (pipe). Default N is 10.
Optionshead, head N, head -n N, with a page PATH or piped input.
LimitationsA bare head with no path and no pipe reports a missing operand.
$ head ./page1
$ head 3 ./page1
$ ls | head 3
$ cat ./page1 | head