File command
From Just Solve the File Format Problem
(Difference between revisions)
(Add links.) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|[[File command]] | |[[File command]] | ||
|} | |} | ||
+ | The <code>file</code> command is a file format identification utility that has been a part of Unix distributions for many years. | ||
− | + | The [https://manpages.debian.org/man1/file 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. | |
− | + | ||
− | + | ||
− | + | ||
− | 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 == | == Links == | ||
− | * [ | + | * [https://darwinsys.com/file/ File Command web site] |
− | * [ | + | * [https://www.astron.com/pub/file/ Source code releases] |
+ | * [[wikipedia:File (command)|file on Wikipedia]] | ||
+ | * [https://github.com/file/file Read-only mirror of file CVS repository - file - GitHub] | ||
+ | * [https://github.com/file/file/tree/master/magic/Magdir Magdir path on read-only mirror of file CVS repo - GitHub] (a database of magic numbers - generally sorted by topic) | ||
* [http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/file/ FreeBSD port tree] (referring to the porting of the original distribution into FreeBSD) | * [http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/file/ FreeBSD port tree] (referring to the porting of the original distribution into FreeBSD) | ||
+ | * [https://github.com/ReFirmLabs/binwalk binwalk project repository on GitHub] (uses <code>libmagic</code> which is part of <code>file</code> package to identify, and optionally extract, files and data that have been embedded inside of other files) | ||
+ | |||
+ | [[Category:File Format Identification]] |
Latest revision as of 13:14, 15 August 2025
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.
[edit] 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)