linux下解压 tar, bz2, gz 等格式压缩包
tar -xvf file.tar //解压 tar包
tar -xzvf file.tar.gz //解压tar.gz
tar -xjvf file.tar.bz2 //解压 tar.bz2
tar -xZvf file.tar.Z //解压tar.Z
unzip file.zip //解压zip
unrar e file.rar //解压rar,e 表示 Extract files to current directory
-----------------------------------------------------------------------
将整个 /etc 目录下的文件打包成 etc.tar
tar -cvf etc.tar /etc