1. 程式人生 > >Centos 6.5 壓縮-解壓方法

Centos 6.5 壓縮-解壓方法

壓縮-解壓方法
================================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gz壓縮格式
tar -rf tomcat7.gz tomcat7

gz解壓格式

tar -xvf tomcat7.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

tar壓縮格式
tar -rf tomcat7.tar tomcat7

tar解壓格式
tar -xvf tomcat7.tar

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

gz加密壓縮格式
tar zcvf tomcat7.gz tomcat7

gz加密解壓格式
tar xvf  tomcat7.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

tar加密壓縮格式
tar zcvf  tomcat7.tar.gz tomcat7

tar加密解壓格式
tar  zxvf tomcat7.tar.gz