压缩文件/文件夹 tar -czvf target.tar.gz target -c: create, 创建压缩包-z: gzip属性-v: verbose, 详细-f: 接档案名字, 放在-cvf最后面 解压缩 tar -xzvf target.tar.gz -x: 解压.