extract a tar.xz file linux code example Example: extract a tar.xz file linux tar -xf filename.tar.xz