File

For installation instructions see the Section called Installing File-4.04 in Chapter 6.

Official Download Location

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

Contents of File

(Last checked against version 4.04.)

File is a utility used to determine file types.

Installed program: file

Installed library: libmagic.[a,so]

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.

File Installation Dependencies

(Last checked against version 3.37.)

Bash: sh
Binutils: as, ld
Coreutils: cat, chmod, echo, expr, hostname, install, ln, ls, mv, rm,
             sleep, touch, tr
Diffutils: cmp
Gawk: gawk
GCC: cc1, collect2, cpp, gcc
Grep: egrep, grep
M4: m4
Make: make
Sed: sed
Texinfo: makeinfo