tldr/pages/common/xz.md

37 lines
617 B
Markdown
Raw Normal View History

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