
f
®le(1) | ®le(1) |
NAME
®le - determine ®le type
SYNOPSIS
file
DESCRIPTION
file performs a series of tests on each ®le in an attempt to classify it. If ®le appears to be an ASCII ®le, file examines the ®rst 512 bytes and tries to guess its language. If ®le is an executable a.out ®le, file prints the version stamp, provided it is greater than 0 (see the description of the
file uses the ®le /etc/magic to identify ®les that have some sort of magic number, that is, any ®le containing a numeric or string constant that indicates its type. Commentary at the beginning of /etc/magic explains the format.
Options
file recognizes the following
EXTERNAL INFLUENCES
Environment Variables
LC_MESSAGES determines the language in which messages are displayed.
If LC_MESSAGES is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, file behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and
WARNINGS
The file command for a release interprets the core ®les for that particular release correctly. Using the file command on a core ®le generated on a different release will report incorrect results.
SEE ALSO
ld(1).
STANDARDS CONFORMANCE file: SVID2, SVID3, XPG2, XPG4
Section 1−270 | − 1 − |