Home

Awesome

Learning gzip License: MIT

Just one of the things I'm learning. https://github.com/hchiam/learning

https://www.youtube.com/watch?v=NLtt4S9ErIA

gzip --version         # check that gzip runs in your CLI
gzip somefile.md       # compress to a .gz file (NOTE: REPLACES ORIGINAL FILE)
gzip -l somefile.md.gz # prints out compression stats (higher ratio = better)
gzip -d somefile.md.gz # decompress

If you want to keep the original file, add the -c option and > to a file name:

gzip -c somefile.md > output.gz

Further

brotli?

tar?

# to compress a folder, which gzip can't:
tar -czvf target.tar.gz somefolder