I am paying attention to the problem of the nail in Chongqing today, so I didn't read a book. Just say one command. FILE command, used to display the file type (such as text files or folders ).
Usage: file [Option]... [file]...
Determine file type of files.
-M, -- magic-file list use list as a colon-separated list of magic
Number files
-Z, -- uncompress try to look inside compressed files
-B, -- Brief do not prepend filenames to output lines
-C, -- checking-printout print the parsed form of the magic file, use in
Conjunction with-m to debug a new magic File
Before installing it
-F, -- files-from File Read the filenames to be examined from File
-F, -- separator string use string as separator instead ':'
-I, -- mime output MIME type strings
-K, -- keep-going don't stop at the first match
-L, -- dereference causes symlinks to be followed
-N, -- no-buffer do not buffer output
-N, -- no-pad do not pad output
-P, -- preserve-date preserve access times on files
-R, -- raw don't translate unprintable chars to \ ooo
-S, -- Special-files treat special (Block/Char devices) files
Ordinary ones
-- Help display this help and exit
-- Version output version information and exit