How to detect type of compression used on the file? (if no file extension is specified)

后端 未结 3 1055
你的背包
你的背包 2020-11-28 05:15

How can one detect the type of compression used on the file? (assuming that .zip, .gz, .xz or any other extension is not specified).

Is this information stored somew

3条回答
  •  抹茶落季
    2020-11-28 05:45

    As an alternative to inspecting the file header by hand, you could use some utility like TrID. The link points to the cross-platform command line version; for Windows there's a GUI, too.

提交回复
热议问题