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

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

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/

posted on 2019-11-04 15:09  中道学友  阅读(13712)  评论(3编辑  收藏  举报

导航

技术追求准确,态度积极向上