mimetype

Automatically determine the MIME type of a file. More information: https://manned.org/mimetype.

mimetype path/to/file

mimetype --brief path/to/file

mimetype --describe path/to/file

command | mimetype --stdin

mimetype --debug path/to/file

mimetype --all path/to/file

mimetype --language path/to/file