Filesystem
file
Detects file type based on contents.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$file [OPTIONS] FILE
Examples
$file image.png
$file -i datei.txt
Typical use cases
?
Standard usage
file --help
Note
Magic number detection.
Export