Text Processing
head
Shows 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
Useful for quick file preview.
Export