linux 打包 压缩

时间:2015-08-20 10:59:25   收藏:0   阅读:188
范例一:将整个 /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 压缩

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!