One Linux command per day (2): File command

Source: Internet
Author: User

Role: View file type information

Format: File[options ...] [FILE ...]

Main parameters:

--HELP Display Help information

-V,--version output information and exit

-B,--Brief does not display the file name

-F,--Files-fromfile displays the type of the specified file (you can specify multiple "" separate)

-F,--seperatorstring uses a string as a delimiter and no longer uses ":"

-I,--MIME display file MIME type

--mime-type

--mime-encoding

-L,--dereference displays the file information that the symbolic link points to

-H,--no-dereference

-d,--Debug output debugging Information

Example:

View all file information under current path

File *

Do not display file names

File--brief 1.txt

Show file MIME type

File--mime 1.txt

Display the file information listed in the Name list

File-f 1.txt

Show the type that the symbolic link points to

File-l 1.txt

Display Help information

File--help

Display version Information

File--version

One Linux command per day (2): File command

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.