1)从大型压缩文件中提取
我想从linux服务器上的大型zip文件(30Gb+)中提取文件。有足够的空闲磁盘空间。
我试过jar xf dataset.zip
了。但是,有一个错误是push button is full
,它无法提取所有的文件。
我试过unzip
,但是but文件损坏了。
Archive: dataset.zip
warning [dataset.zip]: 35141564204 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [dataset.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
我尝试了zip -FF dataset.zip --out data.zip
,有一个错误,条目太大了:
zip error: Entry too big to split, read, or write (Poor compression resulted in unexpectedly large entry - try -fz)
我能有效地从很大的压缩文件中提取文件吗?
2)从大型压缩文件中提取某些文件
如果我只想从这个大压缩文件中提取一些特定的文件,那么我是否只能提取这些文件呢?例如,来自dataset.zip的data1.txt?看来我不能使用任何zip
或unzip
命令(总是有the文件损坏的问题)。
谢谢!
发布于 2021-06-01 15:29:05
我也用类似于Irene W的方式解决了这个问题。那是个坏了的拉链。我首先用以下方法修复了该文件:
zip -FF original_corrupted.zip --out fixed_file.zip -fz
然后解压缩固定的zip文件:
unzip fixed_file.zip
https://stackoverflow.com/questions/31481701
复制相似问题