mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-31 16:42:03 +00:00
23 lines
624 B
Plaintext
23 lines
624 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# zlib-flate
|
|
|
|
> Raw zlib compression and decompression program.
|
|
> Part of `qpdf`.
|
|
> More information: <https://manned.org/zlib-flate>.
|
|
|
|
- Compress a file:
|
|
|
|
`zlib-flate -compress < {{path/to/input_file}} > {{path/to/compressed.zlib}}`
|
|
|
|
- Uncompress a file:
|
|
|
|
`zlib-flate -uncompress < {{path/to/compressed.zlib}} > {{path/to/output_file}}`
|
|
|
|
- Compress a file with a specified compression level. 0=Fastest (Worst), 9=Slowest (Best):
|
|
|
|
`zlib-flate -compress={{compression_level}} < {{path/to/input_file}} > {{path/to/compressed.zlib}}`
|