tldr/pages/common/xz.md

28 lines
396 B
Markdown
Raw Normal View History

2016-01-28 23:42:05 +03:00
# xz
> Compress or decompress .xz and .lzma files.
- Compress a file:
`xz {{file}}`
- Decompress a file:
`xz -d {{file.xz}}`
- 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}}`