A.14. File

For installation instructions see Section 6.37.

A.14.1. Official Download Location

File (4.04): 
ftp://ftp.gw.com/mirrors/pub/unix/file/

Alternate Download Location:
ftp://gaosu.rave.org/pub/linux/lfs/

A.14.2. Contents of File

File is a utility used to determine file types.

Installed program: file

Installed library: libmagic.[a,so]

A.14.3.

A.14.4. Short description

file tries to classify each given file. It does this by performing several tests: filesystem tests, magic number tests, and language tests. The first test that succeeds determines the result.

libmagic contains routines for magic number recognition, used by the file program.

A.14.5.

A.14.6. File Installation Dependencies

File depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Sed, Zlib.