HEAD(1) General Commands Manual HEAD(1)

head - Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long flags are mandatory for short flags too.

head [-c|--bytes] [-n|--lines] [-q|--quiet] [-v|--verbose] [-z|--zero-terminated] [-h|--help] [-V|--version] [FILE]

Print the first 10 lines of each FILE to standard output. With more than one FILE, precede each with a header giving the file name. With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long flags are mandatory for short flags too.

print the first NUM bytes of each file; with a leading '-', print all but the last NUM bytes of each file
print the first NUM lines instead of the first 10; with a leading '-', print all but the last NUM lines of each file
never print headers giving file names
always print headers giving file names
line delimiter is NUL, not newline
Print help
Print version
[FILE]

v(uutils coreutils) 0.8.0

2026-04-07