"file -i" command may display the mime type of gzip files as "application/octet-stream" instead of "application/x-gzip"

Solution Unverified - Updated -

Issue

  • The file -i command displays the mime type of a specific gzip file as application/octet-stream instead of application/x-gzip

    $ file -i filename
    filename: application/octet-stream; charset=binary
    
  • The file command displays the file information as Sun disk label instead of gzip compressed data

    $ file filename
    filename: Sun disk label '\037\010\036QrU\323`\312\013X\254+j-r\227]Z\222d\021\235\375\242\032q\352q\322-\320y0\232\206e?\371\310\375\3353s\356.\351m\200\310\315s\317s\346|\263v:)!\2047\357 23643 alts/cyl, 6963 interleave, 25077 data cyls, 21069 alt cyls, 32750 heads/partition, 1617887563 blocks
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6 and 7
  • file

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.