xz

A compressor that usually makes smaller files than gzip, at the cost of slower compression.

In more detail

tar selects xz with a capital J, and archives compressed with it end in .tar.xz. It is slower to compress than gzip but usually smaller, and decompression is fast, which suits files made once and downloaded many times.

Example

tar -cJf site.tar.xz site creates an xz-compressed archive of the site directory.

Related terms

Taught in

References

Certification courses