您的位置:首页 > 运维架构 > Linux

.tar.gz 文件和 .tar.xz 文件的区别

2020-06-26 10:52 330 查看

钉钉、微博极速扩容黑科技,点击观看阿里云弹性计算年度发布会!>>>

二者的区别英文原文如下:

tar.gz and tar.xz both are compressed tar-files, but with different compression methods. tar.gz is compressed with the gzip compression utility, tar.xz with the xz utility. For the user there is no difference when extracting those files, both behave exactly the same.


简单来说,两种文件都是压缩了的tar文件,只是压缩算法不同。 tar.gz使用的是gzip压缩工具,tar.xz使用的是xz工具。但对于使用者来说,二者的解压没有区别。


解压命令举例,可以解压压缩包到指定的文件夹。

tar -xvf test123.tar.xz -C ./Extracted/test123


参考资料

============

https://www.linuxquestions.org/questions/linux-newbie-8/what-is-the-difference-between-a-tar-gz-and-a-tar-xz-file-4175429959/

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  behave linux