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

Solution Verified - 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content