File command

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Add links.)
 
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
The <code>file</code> command is a file format identification utility that has been a part of Unix distributions for many years.
 
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 [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 ==
* [http://www.darwinsys.com/file/ File Command web site]
+
* [https://darwinsys.com/file/ File Command web site]
* [ftp://ftp.astron.com/pub/file/ Source code]
+
* [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]]
 
[[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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox