I have a file that is formatted as a .doc
, but Nautilus and LibreOffice insists that it is a .txt. Both precise and Ubuntu 12.10 are that way, but Google Docs can convert it (after playing with it).
Ubuntu – How to change the MIME type for a file
mime-type
Best Answer
To check if 'extension' mime type exist:
To create new mime type:
Open /etc/mime.types with text-editor(with root privileges)
gksudo gedit /etc/mime.types
Add extension to /etc/mime.types in following format:
text/extension extension
For more info click here