Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

head

v(uutils coreutils) 0.1.0

Options

--bytes=<[-]NUM>, -c <[-]NUM>

head-help-bytes

--lines=<[-]NUM>, -n <[-]NUM>

head-help-lines

--quiet, --silent, -q

head-help-quiet

--verbose, -v

head-help-verbose

--presume-input-pipe
--zero-terminated, -z

head-help-zero-terminated

Examples

Output the first few lines of a file:

head -n {{count}} {{path/to/file}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.