Skip to content

Instantly share code, notes, and snippets.

@madsonic
Created July 16, 2019 04:16
Show Gist options
  • Select an option

  • Save madsonic/1f19b5a859d3c24e3fad0a96c2a9c048 to your computer and use it in GitHub Desktop.

Select an option

Save madsonic/1f19b5a859d3c24e3fad0a96c2a9c048 to your computer and use it in GitHub Desktop.
compressions
# compress file into gzip
tar --create --gzip --verbose --file <output file path> <input file path>
tar -czvf <output file path> <input file path>
# extract
tar -xzvf <file path>
# gzip option can be changed to use different compression algo
# https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment