tldr/pages/common/gzip.md
Agniva De Sarker 3da76e4150 Applying the snake_case convention throughout the repo (#967)
* Applying the snake_case convention throughout the repo

- Also removing the file extension where not needed
- Adding {{ }} on a few old pages

* Addressing concerns

- Added {{ }} where they were missed out
- Removed spaces inside {{ }}
- Reverting "file" to "filename" to make it clearer

* Fixing the comments on nc page
2016-07-22 22:24:06 +02:00

24 lines
627 B
Markdown

# gzip
> Compress/uncompress files with gzip compression (LZ77).
- Compress a file, replacing it with a gzipped compressed version:
`gzip {{file.ext}}`
- Decompress a file, replacing it with the original uncompressed version:
`gzip -d {{file.ext}}.gz`
- Compress a file specifying the output filename:
`gzip -c {{file.ext}} > {{compressed_file.ext}}.gz`
- Uncompress a gzipped file 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`