Confusion for mime files: magic, magic.mgc, magic.mime
- by Florence Foo
I'm using Ubuntu. I'm trying to use ruby gem 'shared-mime-info' for an application I'm writing.
I understand that magic.mgc is a compiled version of magic file which has magic number definitions for the different file types.
BUT I don't understand why is it /usr/share/mime/magic is in binary format instead of just normal text file with each…