版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
<!--一个博主专栏付费入口结束-->
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-d284373521.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-d284373521.css">
<div class="htmledit_views" id="content_views">
<pre style="font-family:Menlo, 'Liberation Mono', Consolas, 'Courier New', 'andale mono', 'lucida console', monospace;color:rgb(51,51,51);border:none;margin-bottom:0px;padding:10px 0px;line-height:16px;"></pre><div class="line" style="padding:0px 10px;line-height:20px;">1. 对于zip linux下提供了zip和unzip程序,zip是压缩程序,unzip是解压程序。
它们的参数选项很多,这里只做简单介绍,举例说明一下其用法:
zip all.zip *.jpg 这条命令是将所有.jpg的文件压缩成一个zip包
unzip all.zip 这条命令是将all.zip中的所有文件解压出来
2. 对于.rar要在linux下处理.rar文件,需要安装RAR for Linux,可以从网上下载
可从http://www.rarsoft.com/download.htm下载RAR 5.50 for Linux
然后安装:
tar -xzvf rarlinux-5.5.0.tar.gz
cd rar
make
这样就安装好了,安装后就有了rar和unrar这两个程序,rar是压缩程序,unrar是解压程序
它们的参数选项很多,举例说明一下其用法:
rar a all *.jpg
这条命令是将所有.jpg的文件压缩成一个rar包,名为all.rar
unrar e all.rar
这条命令是将all.rar中的所有文件解压出来
1、*.tar 用 tar zxvf 解压
2、*.rar 用 unrar e解压
3.、*.zip 用 unzip 解压