2

I have been looking around if Gzip supports multi-part file compression. From what I have seen so far it does not, but how come 7z allows multipart compression when Gzip is selected as the compression? Does this mean 7z takes care of multi-partitioning internally?

4

1 回答 1

6

Gzip 不支持多部分存档,但您仍然可以使用以下方法创建它们split

split -–bytes=20m /path/to/large/archive /path/to/output/files

现在,将其重新组合在一起,只需cat将部分组合在一起即可:

cat files* > archive

据我所知,这就是 7-zip 在创建档案时所做的。它可能会添加一些标头信息,但它基本上只是将 20mb 的数据准确地转储到文件中,并在名称后附加一个数字。然后,在内部,它只是组装零件并将其作为存档读取。

于 2011-02-09T15:29:40.500 回答