gpt4 book ai didi

gzip - GZip 是否支持多部分文件压缩?

转载 作者:行者123 更新时间:2023-12-02 08:55:55 32 4
gpt4 key购买 nike

我一直在寻找 Gzip 是否支持多部分文件压缩。 From what I have seen so far it does not, but how come 7z allows multipart compression when Gzip is selected as the compression?这是否意味着 7z 会在内部处理多分区?

最佳答案

Gzip 不支持多部分归档,但您仍然可以使用 split 创建它们:

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

现在,要将它放回原处,只需将这些部分cat 合二为一即可:

cat files* > archive

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

关于gzip - GZip 是否支持多部分文件压缩?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4946804/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com