{"id":316,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=316"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"know-your-mimeset","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=316","title":{"rendered":"Know your mimeset"},"content":{"rendered":"<p>You&#8217;re probably familiar with the Identify option on the Tracker&#8217;s context menu &#8212; it tells the Registrar to try and assign a MIME type to a file if it doesn&#8217;t have one already.<br \/>\nYou can run the exact same process from the Terminal, with one of these two commands:<\/p>\n<pre>\nmimeset -f filename\nmimeset -F filename\n<\/pre>\n<p>The first one functions exactly like Identify, while the second will change the file&#8217;s type if it&#8217;s not correct. The nice thing about these as opposed to using Identify is that you can run them from within scripts, or even over your entire hard drive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;re probably familiar with the Identify option on the Tracker&#8217;s context menu &#8212; it tells the Registrar to try and assign a MIME type to a file if it doesn&#8217;t have one already. You can run the exact same process from the Terminal, with one of these two commands: mimeset -f filename mimeset -F filename [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[13],"class_list":["post-316","post","type-post","status-publish","format-standard","hentry","tag-tracker"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}