tar && Gzip 打包 & 压缩
1 2 3 4 |
# tar 生成一个file.tar的打包文件 tar -cf file.tar file # 对打包文件file.tar进行gzip压缩 生成file.tar.gz压缩文件 gzip -r file.tar |
文件 file.tar.gz 解压缩
1 2 |
# 将file.tar.gz压缩文件解压成为file目录文件 tar -xf file.tar.gz |
文件file.tar.bz2 解压缩
1 2 |
# 将 file.tar.bz2压缩文件解压成为file目录文件 tar -jxf file.tar.bz2 |
tar 参数说明
* -f 必须参数
* -c 打包
* -x 解包
* -v显示过程
本着互联网开源、开放的精神和宗旨,本站所有内容可以随便传播。如需转载或分享无需说明来源。
有任何疑问或烦恼,欢迎评论区讨论。
512
暂无回复数据