CentOS Stream 9
Sponsored Link

Commands Help

Command :   Back to index

file - determine file type
[SYNOPSIS] file FILE
OPTION
-b do not prepend filenames to output lines
-m LIST use LIST as a colon-separated list of magic number files
-z try to look inside compressed files
-Z only print the contents of compressed files
-c print the parsed form of the magic file, use in conjunction with -m to debug a new magic file before installing it
-e TEST exclude TEST from the list of test to be performed for file. Valid tests are
apptype, ascii, cdf, compress, csv, elf, encoding, soft, tar, json, simh, text, tokens
-f FILE read the filenames to be examined from FILE
-F STRING use STRING as separator instead of `:'
-i output MIME type strings (--mime-type and --mime-encoding)
-k don't stop at the first match
-l list magic strength
-L follow symlinks (default if POSIXLY_CORRECT is set)
-h don't follow symlinks (default if POSIXLY_CORRECT is not set) (default)
-n do not buffer output
-N do not pad output
-0 terminate filenames with ASCII NUL
-p preserve access times on files
-P set file engine parameter limits
bytes 7340032 max bytes to look inside file
elf_notes 256 max ELF notes processed
elf_phnum 2048 max ELF prog sections processed
elf_shnum 32768 max ELF sections processed
encoding 65536 max bytes to scan for encoding
indir 50 recursion limit for indirection
name 50 use limit for name/use magic
regex 8192 length limit for REGEX searches
-r don't translate unprintable chars to \ooo
-s treat special (block/char devices) files as ordinary ones
-S disable system call sandboxing
-C compile file specified by -m
-d print debugging messages

Matched Content