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

linux 打包 压缩

时间:2015-08-20 11:02:23      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

范例一:将整个 /etc 目录下的文件全部打包成为 /tmp/etc.tar
[root @linux ~]# tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩!
[root @linux ~]# tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩
[root @linux ~]# tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩

linux 打包 压缩

标签:

原文地址:http://my.oschina.net/maczhao/blog/494877

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