>_ linuxcommand.dev
Startseite file
File system

file

Identify file type based on contents.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-09-09
Syntax
$file [OPTIONEN] DATEI
Examples
$file /bin/sh
$file *.gz
Typical use cases
?
Standard usage
file --help
Note Useful for debugging binary files and archives.
Export