MIME types are the standard labels such as application/pdf that identify a file's format. The --mime-type flag prints just the type, while plain file adds a human description and -i includes the charset. file inspects magic bytes, not extensions, so it works on renamed files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.