[pappy@chmodx]:$ man head

$ head

Output the beginning of files

DOCUMENTEDViewing filesUbuntu 24.04 LTS baseline

Synopsis

head [OPTION]... [FILE]...

What it does

Examples

Show first 10 lines
head file.txt
Show first 20 lines
head -n 20 file.txt

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.