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
- tar — The command that bundles a directory tree into a single archive file, lists one, or unpacks one.
- gzip — The command that compresses a single file and replaces it with a smaller .gz version; gunzip reverses it.
Taught in
- Exam Strategy: Order, Verify, And The Docs You May Use — Red Hat Certified System Administrator (EX200) Exam Prep
- Friday's Backup, Monday's Restore: Incrementals, Images And Compressed Logs — CompTIA Linux+ (XK0-006) Exam Prep
- Filters: Twenty Small Tools — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Files: Globs, Copies And Compression — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- Archives: archive And unarchive On The Managed Nodes — RHCE in Ansible (EX294): Automate Red Hat Systems