01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FILE ( 1 ) FIT..E ( 1 )<br />

NAME<br />

file - determine file type<br />

SYNOPSIS<br />

file [ -c ] [ -f ffile ] [ -m mfile ] arg ...<br />

DESCRIPTION<br />

File performs a series of tests on each argument in an attempt to<br />

classify it. If an argument appears to be ASCII, file examines the<br />

first 512 bytes and tries to guess its language. If an argument is<br />

an executable a..out, file will print the version stamp, provided it<br />

is greater than 0 (see ld(I)).<br />

If the -f option is given, the next argument is taken to be a file<br />

containing the names of the files to be examined.<br />

File uses the file /etc/ magic to identify files that have some sort<br />

of magic number, that is, any file containing a numeric or string<br />

constant that indicates its type. Commentary at the beginning of<br />

/etc/magic explains its format.<br />

The -m option instructs file to use an alternate magic file.<br />

The -c flag causes file to check the magic file for format errors.<br />

This validation is not normally carried out for reasons of<br />

efficiency. No file typing is done under -c.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!