$ file *
68bcd5ef-e7a2-471d-a9b9-2c02fdfe9c69.data: Zip archive data, at least v4.5 to extract
70e07136-ba86-47fd-abcf-d502646bf69e.data: Zip archive data, at least v4.5 to extract
75007091-d9d6-4acf-a919-1740425edcc7.data: Zip archive data, at least v2.0 to extract
我希望最后一个文件也是“Zip 存档数据,至少要解压到 v4.5”。我用 zip(1) 创建了它。我怎样才能使它与其他文件格式相同?
答案1
zip 规范 4.5 版增加了对 Zip64 的支持。以下来自APP注释.TXT
4.4.3.2 Current minimum feature versions are as defined below:
1.0 - Default value
1.1 - File is a volume label
2.0 - File is a folder (directory)
2.0 - File is compressed using Deflate compression
2.0 - File is encrypted using traditional PKWARE encryption
2.1 - File is compressed using Deflate64(tm)
2.5 - File is compressed using PKWARE DCL Implode
2.7 - File is a patch data set
4.5 - File uses ZIP64 format extensions
如果您需要一个需要 4.5 才能提取的 zip 档案,那么您就必须解压缩并重新压缩 2.0 档案。
您可以通过在 zip 命令中zip
包含命令行选项来强制创建 Zip64 存档-fz
zip -fz files