linux解压zip文件提示End-of-central-directory signature not found

      发布在:后端技术      评论:0 条评论

具体解压提示如下:

[root@cloud cs]# unzip web.zip

Archive:  web.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.

note:  web.zip may be a plain executable, not an archive

unzip:  cannot find zipfile directory in one of web.zip or

        web.zip.zip, and cannot find web.zip.ZIP, period.

我们可以提供通过7zip处理试试

首先安装

yum install -y p7zip

使用7zip的命令是7za。
安装完成后的使用方法:
7za {a|d|l|e|u|x} 压缩包文件名 {文件列表或目录,可选}

a  向压缩包里添加文件或创建压缩包,如向001.7z添加001.jpg,执行:7za a 001.7z 001.jpg;将001目录打包执行:7za a 001.7z 001;
d  从压缩里删除文件,如将001.7z里的001.jpg删除,执行:7za d 001.7z 001.jpg
l  列出压缩包里的文件,如列出001.7z里的文件,执行:7za l 001.7z
e  解压到当前目录,目录结构会被破坏,如001.rar内有如下目录及文件123/456/789.html,
执行:7za e 001.rar,目录123和456及文件789.html都会存放在当前目录下。
x  以完整路径解压。

<Commands>

  a : Add files to archive

  b : Benchmark

  d : Delete files from archive

  e : Extract files from archive (without using directory names)

  h : Calculate hash values for files

  i : Show information about supported formats

  l : List contents of archive

  rn : Rename files in archive

  t : Test integrity of archive

  u : Update files to archive

  x : eXtract files with full paths


相关文章
热门推荐