Skip to content

Instantly share code, notes, and snippets.

@khalidx
Created November 12, 2020 04:57
Show Gist options
  • Save khalidx/adfabfdccee9537b98b60717823dff74 to your computer and use it in GitHub Desktop.
Save khalidx/adfabfdccee9537b98b60717823dff74 to your computer and use it in GitHub Desktop.
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