使用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.
仔细看了下,用的文件根本不是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/

最新文章

  1. 【PHP面向对象(OOP)编程入门教程】23.自动加载类 __autoload()函数
  2. 解决Type 'UnityEngine.Component' does not support slicing
  3. mac iterm2配置
  4. Auto generating Entity classes with xsd.exe for XML Serialization and De-Serialization
  5. thinkphp的伪静态化
  6. Android之记住密码与自动登陆实现
  7. Java:基本数据类型包装类
  8. 【Winform】锐浪报表使用
  9. iOS开发——OC篇&消息传递机制(KVO/NOtification/Block/代理/Target-Action)
  10. 解决MySQL 一闪而过的情况
  11. HTTP协议缓存策略深入详解之ETAG妙用
  12. yum执行时Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
  13. Python爬虫11-XML与XPath概述及lxml库的应用
  14. DAY4(PYTHON)列表的嵌套,range,for
  15. RFID的winform程序心得1
  16. 《算法导论》——顺序统计RandomizedSelect
  17. sas infile 控制导入长度
  18. linux(ubuntu) 常用指令
  19. Eclipse创建javaWeb项目工程
  20. java 统计字符串中子字符串个数

热门文章

  1. iOS 苹果官方 Crash文件分析方法 (iOS系统Crash文件分析方法)
  2. FineUI 获取x_state并解析
  3. STL中使用reverse_iterator时,如何正确使用erase函数
  4. 部署 jdk
  5. SVN学习一
  6. c++中的构造函数初始化列表
  7. appium之Context切换
  8. Python(面向对象编程—1)
  9. 我们为什么使用ORM
  10. 第一课Linux系统安装知识(1)