>_ linuxcommand.dev
Startseite head
Text processing

head

Displays the first lines of a file.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-09-09
Syntax
$head [OPTIONEN] [DATEI...]
Examples
$head datei.txt
$head -n 20 datei.txt
Typical use cases
?
Standard usage
head --help
Note Default is 10 lines
Export