Lines Matching +full:if +full:- +full:no +full:- +full:files +full:- +full:found
10 .Bk -words
13 .Op Fl Fl exclude-quiet
15 .Op Fl Fl mime-encoding
16 .Op Fl Fl mime-type
58 or non-printable).
59 Exceptions are well-known file formats (core files, tar archives)
61 When modifying magic files or the program itself, make sure to
63 Users depend on knowing that all the readable files in a directory
75 The program checks to see if the file is empty,
76 or if it's some sort of special file.
80 are intuited if they are defined in the system header file
83 The magic tests are used to check for files with data in
93 These files have a
102 has been applied by extension to data files.
105 The information identifying these files is read from the compiled
108 or the files in the directory
110 if the compiled file does not exist.
111 In addition, if
115 exists, it will be used in preference to the system magic files.
117 If a file does not match any of the entries in the magic file,
118 it is examined to see if it seems to be a text file.
119 ASCII, ISO-8859-x, non-ISO 8-bit extended-ASCII character sets
121 UTF-8-encoded Unicode, UTF-16-encoded Unicode, and EBCDIC
125 If a file passes any of these tests, its character set is reported.
126 ASCII, ISO-8859-x, UTF-8, and extended-ASCII files are identified
130 UTF-16 and EBCDIC are only
137 will attempt to determine other characteristics of text-type files.
138 If the lines of a file are terminated by CR, CRLF, or NEL, instead
139 of the Unix-standard LF, this will be reported.
140 Files that contain embedded escape sequences or overstriking
145 has determined the character set used in a text-type file,
163 archives, JSON files).
169 .Bl -tag -width indent
178 apple-style output defined.
184 output file that contains a pre-parsed version of the magic file or directory.
185 .It Fl c , Fl Fl checking-printout
193 On filesystem errors (file not found etc), instead of handling the error
201 .Bl -tag -width compress
206 Various types of text files (this test will try to guess the text
215 Prints details of Compound Document Files.
217 Checks for, and looks inside, compressed files.
219 Checks Comma Separated Value files.
222 elf magic is found.
224 Examines JSON (RFC-7159) files by parsing them for compliance.
226 Consults magic files.
228 Examines SIMH tape files.
230 Examines tar files by verifying the checksum of the 512 byte tar header.
237 .It Fl Fl exclude-quiet
246 Print a slash-separated list of valid extensions for the file type found.
252 .It Fl f , Fl Fl files-from Ar namefile
253 Read the names of the files to be examined from
261 .Sq -
267 This allows one to process multiple lists of files with different command line
271 Thus if you want to set the delimiter, you need to do it before you specify
272 the list of files, like:
276 .It Fl h , Fl Fl no-dereference
279 This is the default if the environment variable
288 .Sq text/plain; charset=us-ascii
291 .It Fl Fl mime-type , Fl Fl mime-encoding
295 .It Fl k , Fl Fl keep-going
299 .Sq "\[rs]012\- "
301 (If you want a newline, see the
315 This option causes symlinks to be followed, as the like-named option in
318 This is the default if the environment variable
321 .It Fl m , Fl Fl magic-file Ar magicfiles
322 Specify an alternate list of files and directories containing magic.
323 This can be a single item, or a colon-separated list.
324 If a compiled magic file is found alongside a file or directory,
326 .It Fl N , Fl Fl no-pad
328 .It Fl n , Fl Fl no-buffer
330 This is only useful if checking a list of files.
332 .It Fl p , Fl Fl preserve-date
337 attempt to preserve the access time of files analyzed, to pretend that
342 .Bl -column "elf_phnum" "Default" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
359 .It Fl s , Fl Fl special-files
362 only attempts to read and determine the type of argument files which
364 reports are ordinary files.
365 This prevents problems, because reading special files may have peculiar
371 to also read argument files which are block or character special files.
373 disk partitions, which are block special files.
379 .It Fl S , Fl Fl no-sandbox
390 option is specified and the built-in decompressors are not available.
391 On systems where sandboxing is not available, this option has no effect.
395 Try to look inside compressed files.
396 .It Fl Z , Fl Fl uncompress-noreport
397 Try to look inside compressed files, but report information about the contents
408 If this option is repeated more than once, then
412 .It Fl -help
419 If that variable is set, then
432 If set, then
440 .Sh FILES
441 .Bl -tag -width __MAGIC__.mgc -compact
445 Directory containing default magic files.
451 if the operation was successful or
453 if an error was encountered.
458 .Bl -bullet -compact -offset indent
460 A file cannot be found
462 There is no permission to read a file
467 .Bd -literal -offset indent
470 file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
475 $ file -s /dev/wd0{b,d}
479 $ file -s /dev/hda{,1,2,3,4,5,6,7,8,9,10}
492 $ file -i file.c file /dev/{wd0a,hda}
493 file.c: text/x-c
494 file: application/x-executable
495 /dev/hda: application/x-not-regular-file
496 /dev/wd0a: application/x-not-regular-file
519 .Bd -literal -offset indent
524 .Bd -literal -offset indent
528 In addition, in this version, if a pattern string contains a backslash,
531 .Bd -literal -offset indent
536 .Bd -literal -offset indent
548 .Bd -literal -offset indent
560 is asked to decompress input files running external programs with
579 If your old
602 Geoff Collyer found several inadequacies
629 of non-ASCII files.
633 2007-2011, to improve MIME support, merge MIME and non-MIME magic,
634 support directories as well as files of magic, apply many bug fixes,
640 directory (magic files)
643 Many contributors are listed in the source files.
645 Copyright (c) Ian F. Darwin, Toronto, Canada, 1986-1999.
649 The files
653 were written by John Gilmore from his public-domain
669 last-pushed (most specific, one hopes) value at the end, or
670 use a default if the list is empty.
675 and printing \e012- between entries is clumsy and complicated; refactor
678 Some of the encoding logic is hard-coded in encoding.c and can be moved
679 to the magic files if we had a !:charset annotation.
693 Make file -ki work, i.e. give multiple MIME types.
704 hash-bang interpreter.
724 Special-case ^ to flip endianness in the parser so that it does not
727 If the offsets specified internally in the file exceed the buffer size
731 It would be better if buffer managements was done when the file descriptor
744 .Pa /pub/file/file-X.YZ.tar.gz .