1.压缩命令: 命令格式:tar -zcvf 压缩文件名.tar.gz 被压缩文件名 2.解压缩命令: 命令格式:tar -zxvf 压缩文件名.tar.gz gzip -d tar xvf xxx.tar