unpack tar xz code example Example 1: extract a tar.xz file linux tar -xf filename.tar.xz Example 2: uncompress tar.xz linux tar -xvf file_name.tar.xz