File command
From Just Solve the File Format Problem
Software | > | File identification software | > | File command |
The file
command is a file format identification utility that has been a part of Unix distributions for many years.
The Debian manpage gives an overview of its functionality.
The program source includes a database of heuristics for determining file types, which includes a variety of 'magic numbers' which characterise files. This database is not portable, but is potentially adaptable.
Links
- File Command web site
- Source code releases
- file on Wikipedia
- Read-only mirror of file CVS repository - file - GitHub
- Magdir path on read-only mirror of file CVS repo - GitHub (a database of magic numbers - generally sorted by topic)
- FreeBSD port tree (referring to the porting of the original distribution into FreeBSD)
- binwalk project repository on GitHub (uses
libmagic
which is part offile
package to identify, and optionally extract, files and data that have been embedded inside of other files)