码迷,mamicode.com
首页 > 系统相关 > 详细

Linux压缩,解压缩命令

时间:2017-09-02 12:16:22      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:命令   安装   style   com   not   压缩   错误   linux   man   

1.递归压缩命令

zip -r a.zip ./a

命令解释:递归压缩当前路径下的a文件夹,a.zip为压缩后的文件名

2.压缩单个文件

zip a.zip ./a

3.解压缩

unzip a.zip 

问题1:解压缩时出现-bash: unzip: command not found错误

解决1:yum install -y unzip zip 使用yum命令安装zip unzip命令

 

Linux压缩,解压缩命令

标签:命令   安装   style   com   not   压缩   错误   linux   man   

原文地址:http://www.cnblogs.com/yangpeng007/p/7466189.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!