~/head(1) en

HEAD(1)General Commands ManualHEAD(1)

NAME

head - the first lines of something

SYNOPSIS

head [-n count] [file ...]

DESCRIPTION

The first lines of each file, or of what a pipe hands it. More than one file and each gets a ==> name <== header, as head has always done.

A note’s lines are its paragraphs — the shape the shell is handed — so head -2 on a post gives you its first two paragraphs.

OPTIONS

-n count
how many lines. -3, -n 3 and -n3 all mean three; ten if you say nothing.

EXAMPLES

ls | head -3

head -1 /tmp/out.txt

SEE ALSO

tail(1), cat(1), grep(1)

tilenkoren.com2026HEAD(1)