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文件损坏的问题)。
谢谢!
发布于 2015-07-17 21:30:44
我已经解决了问题。结果发现这是一个拉链腐败问题。我首先用以下方法修复了该文件:
zip -FF filename1.zip --out filename2.zip -fz
然后解压缩固定的the文件:
unzip filename2.zip
并成功地提取了所有的文件!
非常感谢Fattaneh Talebi
的帮助!
发布于 2015-07-17 18:14:26
您可以从zip中提取特定文件。
$ unzip -j "zipedfile.zip" "file.txt"
file.txt是要从zipedfile.zip中提取的文件。
发布于 2017-02-16 08:30:21
我也遇到过类似的问题,通过unar命令得到了解决。
unar file.zip
https://stackoverflow.com/questions/31481701
复制相似问题