.tar.gz file format
o 压缩
§ # tar cvf - folder | gzip > filename.tar.gz
o 解压
§ # gunzip -c *.tar.gz | tar -xvf -
gzip -d *.tar.gz
然后
tar -vxf *.tar
tar -cvf /tmp/etc.tar /etc <==仅打包,不压缩!
tar -zcvf /tmp/etc.tar.gz /etc <==打包后,以 gzip 压缩
tar -jcvf /tmp/etc.tar.bz2 /etc <==打包后,以 bzip2 压缩
阅读(1143) | 评论(0) | 转发(0) |