CmdID

CmdID / Commands

mimetype

Automatically determine the MIME type of a file. tldr-pages

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Print the MIME type of a given file

mimetype path/to/fileIdentify

Display only the MIME type, and not the filename

mimetype --brief path/to/fileIdentify

Display a description of the MIME type

mimetype --describe path/to/fileIdentify

Determine the MIME type of stdin (does not check a filename)

command | mimetype --stdinIdentify

Display debug information about how the MIME type was determined

mimetype --debug path/to/fileIdentify

Display all the possible MIME types of a given file in confidence order

mimetype --all path/to/fileIdentify

Explicitly specify the 2-letter language code of the output

mimetype --language path/to/fileIdentify