mimetype
Automatically determine the MIME type of a file. More information: https://manned.org/mimetype.
- Print the MIME type of a given file:
mimetype
- Display only the MIME type, and not the filename:
mimetype --brief
- Display a description of the MIME type:
mimetype --describe
- Determine the MIME type of
stdin(does not check a filename):
| mimetype --stdin
- Display debug information about how the MIME type was determined:
mimetype --debug
- Display all the possible MIME types of a given file in confidence order:
mimetype --all
- Explicitly specify the 2-letter language code of the output:
mimetype --language
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
