2016-01-28 20:42:05 +00:00
|
|
|
# xz
|
|
|
|
|
|
|
|
> Compress or decompress .xz and .lzma files.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://tukaani.org/xz/format.html>.
|
2016-01-28 20:42:05 +00:00
|
|
|
|
2019-04-15 01:24:14 +01:00
|
|
|
- Compress a file to the xz file format:
|
2016-01-28 20:42:05 +00:00
|
|
|
|
|
|
|
`xz {{file}}`
|
|
|
|
|
2019-04-15 01:24:14 +01:00
|
|
|
- Decompress a xz file:
|
2016-01-28 20:42:05 +00:00
|
|
|
|
|
|
|
`xz -d {{file.xz}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Compress a file to the LZMA file format:
|
2019-04-15 01:24:14 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
`xz --format={{lzma}} {{file}}`
|
2019-04-15 01:24:14 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Decompress an LZMA file:
|
2019-04-15 01:24:14 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
`xz -d --format={{lzma}} {{file.lzma}}`
|
2019-04-15 01:24:14 +01:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Decompress a file and write to stdout:
|
2016-01-28 20:42:05 +00:00
|
|
|
|
|
|
|
`xz -dc {{file.xz}}`
|
|
|
|
|
|
|
|
- Compress a file, but don't delete the original:
|
|
|
|
|
|
|
|
`xz -k {{file}}`
|
|
|
|
|
2016-02-01 18:48:59 +00:00
|
|
|
- Compress a file using the fastest compression:
|
2016-01-28 20:42:05 +00:00
|
|
|
|
2016-01-28 21:20:30 +00:00
|
|
|
`xz -0 {{file}}`
|
|
|
|
|
2016-02-01 18:48:59 +00:00
|
|
|
- Compress a file using the best compression:
|
2016-01-28 21:20:30 +00:00
|
|
|
|
|
|
|
`xz -9 {{file}}`
|