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.linux
兩種文件都是壓縮了的tar文件,只是壓縮算法不一樣。 tar.gz使用的是gzip壓縮工具,tar.xz使用的是xz工具。對於使用者來講,兩者的解壓沒有區別。算法
解壓命令舉例,能夠解壓壓縮包到指定的文件夾。工具
tar -xvf test123.tar.xz -C ./Extracted/test123ip
參考資料get
============it