Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-08 00:22:33 +00:00
parent a5c67e91ea
commit 30f33b22c9
20 changed files with 79 additions and 24 deletions

10
tldr/xz
View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Decompress an XZ file:
`xz --decompress {{path/to/file.xz}}`
`xz {{[-d|--decompress]}} {{path/to/file.xz}}`
- Compress a file using lzma:
`xz --format=lzma {{path/to/file}}`
`xz {{[-F|--format]}} lzma {{path/to/file}}`
- Decompress an LZMA file:
`xz --decompress --format=lzma {{path/to/file.lzma}}`
`xz {{[-d|--decompress]}} {{[-F|--format]}} lzma {{path/to/file.lzma}}`
- Decompress a file and write to `stdout` (implies `--keep`):
`xz --decompress --stdout {{path/to/file.xz}}`
`xz {{[-d|--decompress]}} {{[-c|--stdout]}} {{path/to/file.xz}}`
- Compress a file, but don't delete the original:
`xz --keep {{path/to/file}}`
`xz {{[-k|--keep]}} {{path/to/file}}`
- Compress a file using the fastest compression: