1.TH FILE __CSECTION__ "Copyright but distributable" |
2.\" $Id: file.man,v 1.43 2003/02/08 18:33:53 christos Exp $ |
3.SH NAME 4file 5\- determine file type 6.SH SYNOPSIS 7.B file 8[ |
9.B \-bciknNsvzL |
10] 11[ 12.B \-f 13.I namefile 14] 15[ |
16.B \-F 17separator ] 18[ |
19.B \-m 20.I magicfiles 21] 22.I file 23\*[Am]... 24.br 25.B file 26.B -C --- 143 unchanged lines hidden (view full) --- 170.I namefile 171(one per line) 172before the argument list. 173Either 174.I namefile 175or at least one filename argument must be present; 176to test the standard input, use ``\-'' as a filename argument. 177.TP 8 |
178.BI \-F " separator" 179Use the specified separator character instead of ``:''. 180.TP 8 |
181.B \-i 182Causes the file command to output mime type strings rather than the more 183traditional human readable ones. Thus it may say 184``text/plain; charset=us-ascii'' 185rather 186than ``ASCII text''. In order for this option to work, file changes the way 187it handles files recognised by the command itself (such as many of the 188text file types, directories etc), and makes use of an alternative --- 7 unchanged lines hidden (view full) --- 196Specify an alternate list of files containing magic numbers. 197This can be a single file, or a colon-separated list of files. 198.TP 8 199.B \-n 200Force stdout to be flushed after checking each file. This is only useful if 201checking a list of files. It is intended to be used by programs that want 202filetype output from a pipe. 203.TP 8 |
204.B \-N 205Don't pad output to align filenames nicely. 206.TP 8 |
207.B \-v 208Print the version of the program and exit. 209.TP 8 210.B \-z 211Try to look inside compressed files. 212.TP 8 213.B \-L 214option causes symlinks to be followed, as the like-named option in --- 17 unchanged lines hidden (view full) --- 232disk partitions, which are block special files. 233This option also causes 234.B file 235to disregard the file size as reported by 236.BR stat (2) 237since on some systems it reports a zero size for raw disk partitions. 238.SH FILES 239.I __MAGIC__.mgc |
240\- default compiled list of magic numbers |
241.PP 242.I __MAGIC__ 243\- default list of magic numbers 244.PP 245.I __MAGIC__.mime 246\- default list of magic numbers, used to output mime types when the -i option 247is specified. 248 --- 214 unchanged lines hidden --- |