Skip to content

Instantly share code, notes, and snippets.

@khalidx
Created November 12, 2020 04:57
For unzipping gz files (like for CloudFront logs stored in S3).

unzipping a .gz file

On Linux and MacOS, a .gz file can be decompressed using the gzip command.

For example:

gzip -d log.gz

The command above will replace the .gz file with the decompressed version, leaving you with log instead of log.gz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment