mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 15:46:58 +00:00
Update cheatsheets
This commit is contained in:
29
zstd
Normal file
29
zstd
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zstd
|
||||
|
||||
> Compress or decompress files with Zstandard compression.
|
||||
> More information: <https://github.com/facebook/zstd>.
|
||||
|
||||
- Compress a file into a new file with the `.zst` suffix:
|
||||
|
||||
`zstd {{path/to/file}}`
|
||||
|
||||
- Decompress a file:
|
||||
|
||||
`zstd --decompress {{path/to/file.zst}}`
|
||||
|
||||
- Decompress to `stdout`:
|
||||
|
||||
`zstd --decompress --stdout {{path/to/file.zst}}`
|
||||
|
||||
- Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default:
|
||||
|
||||
`zstd -{{level}} {{path/to/file}}`
|
||||
|
||||
- Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
|
||||
|
||||
`zstd --ultra -{{level}} {{path/to/file}}`
|
||||
Reference in New Issue
Block a user