How To Detect The Mime Type Of A File
Some MIME types tin move intuitive - application/pdf for PDF files. However, non all MIME types are that tardily to become just correct - application/vnd.ms-excel for xls or Excel files.
The next are unlike ways, using the ascendancy line, to rank the MIME type of a file.
- xdg-mime
$ xdg-mime enquiry filetype somefile.xls application/vnd.ms-excel
- file
$ file -b --mime-type somefile.xls application/vnd.ms-excel
- gvfs-info
$ gvfs-info -a standard::content-type somefile.xls attributes: standard::content-type: application/vnd.ms-excel
0 Response to "How To Detect The Mime Type Of A File"
Post a Comment