Beginner's guide to compression with xz on Linux - LinuxConfig.org

xz compression has been rising in popularity because it offers smaller file sizes than gzip and bzip2. You're still likely to see all three on a Linux system, but you may want to start opting for xz if you want smaller file archives.

In this guide, we're going to introduce you to xz compression, starting from basic examples to more specific and advanced usage. If you've worked with compressed tar files or gzip compression (files with the .tar.gz extension, for example) in the past, you'll find that xz feels very familiar.


This is a companion discussion topic for the original entry at https://linuxconfig.org/beginner-s-guide-to-compression-with-xz-on-linux

Much easier to just use the GUI program Engrampa Archive manager. It has many compression formats and options, without remembering a lot of commands. I use it for all my compression needs, and in some formats it also allows you to hide the names of the files or folders and password protects them.