mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:42:19 +02:00

* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names * pages*: fix brand and technical names Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git * bzegrep: enclose egrep with backticks Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-bug: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-bug: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-force-clone: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * gitwatch: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * hub-init: use Git instead of `git` Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * pages.*: use Linux instead of GNU/Linux --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
28 lines
768 B
Markdown
28 lines
768 B
Markdown
# gzip
|
|
|
|
> Compress/uncompress files with `gzip` compression (LZ77).
|
|
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
|
|
|
|
- Compress a file, replacing it with a `gzip` archive:
|
|
|
|
`gzip {{file.ext}}`
|
|
|
|
- Decompress a file, replacing it with the original uncompressed version:
|
|
|
|
`gzip -d {{file.ext}}.gz`
|
|
|
|
- Compress a file, keeping the original file:
|
|
|
|
`gzip --keep {{file.ext}}`
|
|
|
|
- Compress a file specifying the output filename:
|
|
|
|
`gzip -c {{file.ext}} > {{compressed_file.ext.gz}}`
|
|
|
|
- Decompress a `gzip` archive specifying the output filename:
|
|
|
|
`gzip -c -d {{file.ext}}.gz > {{uncompressed_file.ext}}`
|
|
|
|
- Specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6:
|
|
|
|
`gzip -9 -c {{file.ext}} > {{compressed_file.ext.gz}}`
|