tldr/pages/common/xz.md

24 lines
365 B
Markdown
Raw Normal View History

2016-01-28 20:42:05 +00: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}}`
- Compress a file and attempt to improve compression ratio by using more CPU time:
`xz -e {{file}}`