Examples (7)
Print the MIME type of a given file
mimetype path/to/fileDisplay only the MIME type, and not the filename
mimetype --brief path/to/fileDisplay a description of the MIME type
mimetype --describe path/to/fileDisplay debug information about how the MIME type was determined
mimetype --debug path/to/fileDisplay all the possible MIME types of a given file in confidence order
mimetype --all path/to/fileExplicitly specify the 2-letter language code of the output
mimetype --language path/to/filemade by @shridhargupta | data from tldr-pages