6.37. File-4.24

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

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/file

6.37.1. Installation of File

Prepare File for compilation:

./configure --prefix=/usr --disable-static

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install

6.37.2. Contents of File

Installed programs: file
Installed library: libmagic.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