TOOL » LINUX » PACKAGE

File

Usage

shell
file OPTIONS
OptionDescription
-b --briefDo not prepend filenames to output lines.
-i --mimePrint the mimetype and charset of the file.
--mime-typePrint the mimetype of the file.

Print only the mimetype of a file:

shell
file --mime-type --brief FILE