zip无法解压
2024-08-29 08:30:56
使用unzip解压,提示
[root@iZ28g3behi3Z html]# unzip /var/www/html/deyizhonggong.zip
Archive: /var/www/html/deyizhonggong.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 /var/www/html/deyizhonggong.zip or
/var/www/html/deyizhonggong.zip.zip, and cannot find /var/www/html/deyizhonggong.zip.ZIP, period.
Archive: /var/www/html/deyizhonggong.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 /var/www/html/deyizhonggong.zip or
/var/www/html/deyizhonggong.zip.zip, and cannot find /var/www/html/deyizhonggong.zip.ZIP, period.
仔细看了下,用的文件根本不是zip格式的,是rar,用
rar x deyizhonggong.zip 解压
压缩目录,使用命令zip ceshi.zip /var/www/html/wp-admin/* 得到的文件永恒是
解决方法:用zip压缩目录要加上 -r 参数
zip -r ceshi.zip /var/www/html/wp-admin/
最新文章
- 【PHP面向对象(OOP)编程入门教程】23.自动加载类 __autoload()函数
- 解决Type 'UnityEngine.Component' does not support slicing
- mac iterm2配置
- Auto generating Entity classes with xsd.exe for XML Serialization and De-Serialization
- thinkphp的伪静态化
- Android之记住密码与自动登陆实现
- Java:基本数据类型包装类
- 【Winform】锐浪报表使用
- iOS开发——OC篇&;消息传递机制(KVO/NOtification/Block/代理/Target-Action)
- 解决MySQL 一闪而过的情况
- HTTP协议缓存策略深入详解之ETAG妙用
- yum执行时Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
- Python爬虫11-XML与XPath概述及lxml库的应用
- DAY4(PYTHON)列表的嵌套,range,for
- RFID的winform程序心得1
- 《算法导论》——顺序统计RandomizedSelect
- sas infile 控制导入长度
- linux(ubuntu) 常用指令
- Eclipse创建javaWeb项目工程
- java 统计字符串中子字符串个数