[英]I can unzip on a remote machine but not on my computer
在群集上,我压缩了一个大目录(61GB,压缩后为9.2GB)。
zip -r zzDirectory Directory
然后,我在个人计算机上scp
zzDirectory
。
scp -r name@host.com:/path/to/zzDirectory.zip path/in/my/computer/zzDirectory.zip
最后,我将其解压缩。 我试图从bash解压缩,但是失败了
warning [zzDirectory.zip]: 5544449626 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [zzDirectory.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)
因此,我双击了查找器中的图标,系统开始将zzDirectory.zip
解压缩。 但是,某些文件丢失了,并且看起来(我还不能100%确定)某些换行符( \\n
)也丢失了。 以前,在我的计算机上使用unzip
可以正常工作。
为了调查问题的zzDirectory.zip
,我在群集上解压缩了zzDirectory.zip
,一切似乎都正常运行(没有丢失的文件)。
我重复了传输并再次解压缩,但问题仍然存在。 请注意,转移是通过互联网进行的。 我的操作系统是Mac OSX Yosemite 10.10.2。
我该如何解决这个问题? 我宁愿不传输由于带宽问题而未压缩的数据。 您认为我应该尝试tar
还是应该使用unzip
命令行附带的特定选项?
在OS X
您可以尝试:
ditto -x -k the_over4gb.zip /path/to/dir/where/want/unzip
例如:
ditto -x -k zzDirectory.zip .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.