xref: /csrg-svn/usr.bin/file/file.1 (revision 66540)
1*66540Sbostic.\" Copyright (c) 1990, 1993, 1994
261993Sbostic.\"	The Regents of the University of California.  All rights reserved.
319667Smckusick.\"
443693Scael.\" %sccs.include.redist.man%
543693Scael.\"
6*66540Sbostic.\"     @(#)file.1	8.2 (Berkeley) 03/31/94
743693Scael.\"
843693Scael.Dd
943693Scael.Dt FILE 1
1047337Scael.Os
1143693Scael.Sh NAME
1243693Scael.Nm file
1343693Scael.Nd identify file content
1443693Scael.Sh SYNOPSIS
1543693Scael.Nm file
16*66540Sbostic.Op Fl h
17*66540Sbostic.Ar file ...
1843693Scael.Sh DESCRIPTION
1943693Scael.Nm File
20*66540Sbostictests the specified files and attempts to classify them.
21*66540SbosticIf a file is a text file,
22*66540Sbosticit attempts to determine the type of text (e.g.
2343693Scael.Xr csh 1
24*66540Sbosticcommands or C source code).
25*66540Sbostic.Pp
26*66540SbosticThe options are as follows:
27*66540Sbostic.Bl -tag -width Ds
28*66540Sbostic.It Fl h
29*66540SbosticIf a symbolic link is specified, identify the file as a symbolic
30*66540Sbosticlink.
31*66540SbosticBy default, symbolic links are only identified if they reference
32*66540Sbosticnon-existent files.
33*66540Sbostic.El
34*66540Sbostic.Sh COMPATIBILITY
35*66540SbosticPrevious implementations of the
36*66540Sbostic.Nm file
37*66540Sbosticutility did not follow symbolic links by default.
3850081Sbostic.Sh BUGS
3950081SbosticAs many tests are used and
40*66540Sbostic.Nm file
41*66540Sbosticstops testing on the first successful one, it can often make mistakes.
4243693Scael.Sh HISTORY
4343693ScaelA
4443693Scael.Nm file
4550671Scaelcommand appeared in
4650671Scael.At v6 .
47