Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
xz Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# xz
> Compress or decompress `.xz` and `.lzma` files.
> More information: <https://manned.org/xz>.
- Compress a file using xz:
`xz {{path/to/file}}`
- Decompress an xz file:
`xz --decompress {{path/to/file.xz}}`
- Compress a file using lzma:
`xz --format=lzma {{path/to/file}}`
- Decompress an lzma file:
`xz --decompress --format=lzma {{path/to/file.lzma}}`
- Decompress a file and write to `stdout` (implies `--keep`):
`xz --decompress --stdout {{path/to/file.xz}}`
- Compress a file, but don't delete the original:
`xz --keep {{path/to/file}}`
- Compress a file using the fastest compression:
`xz -0 {{path/to/file}}`
- Compress a file using the best compression:
`xz -9 {{path/to/file}}`