The original 'file' command shipped with Bell Labs UNIX, but was unavailable in source form to the masses before this re-implementation. Like any other command-line program, File must be used through any terminal emulator application.
File comes with various command-line options that will help you to classify files on your GNU/Linux system better and faster. They can be viewed at a glance by running the ‘file --help’ command in a terminal emulator app.
Among the most useful command-line options, we can mention support for using a specific file as a color-separated list of magic number files, support for processing compressed files, as well as support for outputting MIME type strings, MIME encoding or Apple type/creator.
Additionally, the user will be able to list magic strength, to enable following of symlinks, to terminate filenames with ASCII NUL, to preserve access time on files, to treat special files as ordinary ones, and to compile a file that is specified by the -m (--magic-file LIST) option.
Under the hood and supported OSes
File is a cross-platform software written entirely in the C programming language, which means that it is fast and supports all known GNU/Linux operating systems, as well as various BSD distributions, including FreeBSD, OpenBSD and NetBSD. Darwin/Mac OS X is also supported.
The program is distributed as a universal source tarball (TAR archive) that can be easily installed on any 32-bit or 64-bit system. To install it, simply download the archive, save it on your PC, unpack it, open a terminal app and navigate to the location of the extracted archive files (e.g. cd /home/softpedia/file-5.20), run the ‘./configure && make’ command, and then execute the ‘make install’ or ‘sudo make install’ command.
Reviewed by Marius Nestor, last updated on December 11th, 2014
In a hurry? Add it to your Download Basket!
- 1.sm.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 320x214, Scaling: [none]x[none], YUV color, decoders should clamp
- 1.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 550x368, Scaling: [none]x[none], YUV color, decoders should clamp
- CCITT_1.TIF: TIFF image data, little-endian, direntries=17, height=2376, bps=1, compression=bi-level group 4, PhotometricIntepretation=WhiteIsZero, name=Standard Input, description=converted PBM file, width=1728
- FLOWER.jpg: JPEG image data, baseline, precision 8, 2592x3904, frames 3
Application descriptionFile is one of the most important Linux/UNIX programs. It is an open source, cross-platform and free command-line soft...