MIME type is a standard way that computers use to refer to the file-type/format

learn more… | top users | synonyms

10
votes
3answers
5k views

What is the relationship between MIME types and File .extensions?

I may have the wrong idea here, but I thought that: MIME types are identifying codes, embedded inside a file. File .extensions are idenifying codes, suffixed to the file's name. I thought, from ...
7
votes
1answer
2k views

How are file-extensions/mime-types/icons/default applications asssociated?

Is there a way / application to add a file extension / mime-type to the system. What I want to achieve is: Have a default program for opening files of this type Have a special icon for this filetype ...
21
votes
1answer
17k views

How to get the mime type of a file from the command line?

I'm trying to get the mime type of a file from the command line as a printed string (eg. application/vnd.oasis.opendocument.spreadsheet). I looked up how to do this and found the xdg-mime command. ...