Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compress or decompress tar.xz on Linux Mint

xz is a loss-less compression format similar to lzma. When you come across tar.xz files either use the -J option for decompression or no option at all (tar is clever enought to spot the compression type).

Compress to tar.xz

tar -cfJ your_archive.tar.xz /your_directory

Uncompress tar.xz

tar -xfJ your_archive.tar.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.