mimetype

Automatically determine the MIME type of a file.
More information.
mimetype {path/to/file}
mimetype --brief {path/to/file}
mimetype --describe {path/to/file}
{some_command} | mimetype --stdin
mimetype --debug {path/to/file}
mimetype --all {path/to/file}
mimetype --language {path/to/file}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY