因为工作需要,unzip成了最常用的命令,没有之一,在之前的使用过程中从未出现过错误,可是终有一天,它还是带着报错走来了...

网速慢+电脑卡(绝不承认是我一时大意输错命令!!)等原因,我输错了命令,导致服务器以为我要用unzip同时解压两个文件

正确:unzip db-1.zip

错误:unzip db-1.zip  kaishuo.zip

然后,报错了.... 又试了好几次都不能正常解压文件,最终我陷入了自闭...

[root@guest acrn.be]# unzip db-1.zip
Archive: db-1.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of db-1.zip or
db-1.zip.zip, and cannot find db-1.zip.ZIP, period.

可是问题还是要解决,就在拿着报错的警示语在网上搜了很多贴,啊有眉目了!!!现在说明解决方案

  1. 将要压缩的文件在window下解压,看文件是否能正常解压,排除文件损坏的可能性
  2. 查看文件大小,如果压缩文件.zip是大于2G的,那unzip就无法使用了
  3. 最关键的 -- 将文件重新压缩,上传,unzip解压.(重要性相当于手机死机要关机重启一样的原理)

问题解决啦,又长了个小知识~ ~  (*^▽^*)


欣赏才华