FILE(1) BSD Reference Manual FILE(1)
file - identify file content
file [-h] file ...
File tests the specified files and attempts to classify them. If a file
is a text file, it attempts to determine the type of text (e.g. csh(1)
commands or C source code).
The options are as follows:
-h If a symbolic link is specified, identify the file as a symbolic
link. By default, symbolic links are only identified if they
reference non-existent files.
Previous implementations of the file utility did not follow symbolic
links by default.
As many tests are used and file stops testing on the first successful
one, it can often make mistakes.
A file command appeared in Version 6 AT&T UNIX.
4.4BSD March 31, 1994 1