compresse +要压缩的文件 --->。go.Z
uncomresse +要解压的文件
gzip +要压缩的文件 --->.gz 原文件会被删除
gunzip +要解压的文件 或者gzip -d 要解压文件
bzip2 要压缩为文件
同样 bzip2 -d *.bzip2
打包tar
主要参数 -c 备份文件 创建
-v 将过程输出
-x 从一个文件中解出备份
-r 将文件添加入已经存在的文件中
-f file
范例
备份 tar cvf backup.tar *.txt
解开 tar xvf backup.tar -C backup/
tar -z 压缩
tar cvf /tmp/root.tar .