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}}`
|
|
|
|
|
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}}`
|