file command

Hi,

we are using sun solaris 9 os. I want to know how the file command works?
How does it differentiate text files, data files and other files ?
Is there any relationship between environmental variables and file command?

IT uses a magic word - try man magic

Hi,
That's quiet straightforward :
file <filename>
:b:

No duplicate or cross-posting, read the rules.

Proceed here: http://www.unix.com/unix-dummies-questions-answers/64991-working-file-command.html\#post302194638

Thread closed.