6.36. File-5.00

The File package contains a utility for determining the type of a given file or files.

Approximate build time: 0.2 SBU
Required disk space: 9.5 MB

6.36.1. Installation of File

Fix the man page so that it will reflect recent changes to the -e (--exclude) parameter:

sed -i -e '197,+1d' \
       -e '189,+1d' \
       -e 's/token$/tokens/' doc/file.man

Prepare File for compilation:

./configure --prefix=/usr

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

6.36.2. Contents of File

Installed programs: file
Installed library: libmagic.{a,so}

Short Descriptions

file

Tries to classify each given file; it does this by performing several tests—file system tests, magic number tests, and language tests

libmagic

Contains routines for magic number recognition, used by the file program