zip -r myfile.zip http://www.jsgho.com/help/fwq/*
将当前目录下的所有文件和文件夹全部压缩成myfile.zip文件,-r表示递归压缩子目录下所有文件。
2.unzip
unzip -o -d /home/sunny myfile.zip
把myfile.zip文件解压到 /home/sunny/
-o:不提示的情况下覆盖文件;
-d:-d /home/sunny 指明将文件解压缩到/home/sunny目录下。
3.其他
zip -d myfile.zip smart.txt
删除压缩文件中smart.txt文件
zip -m myfile.zip http://www.jsgho.com/help/fwq/rpm_info.txt
向压缩文件中myfile.zip中添加rpm_info.txt文件。
共0条 [查看全部]相关评论