Linux Command Learning (4): file command

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.