Skip to content

Instantly share code, notes, and snippets.

@rxnlabs
Last active October 23, 2017 12:33
Show Gist options
  • Save rxnlabs/90fc9d37d9f3d3c49e35 to your computer and use it in GitHub Desktop.
Save rxnlabs/90fc9d37d9f3d3c49e35 to your computer and use it in GitHub Desktop.
Command Line - Zip folder and all files (gzip, bz2)
tar -cvzf filename.tar.gz folder
tar -cvjf filename.tar.bz2 folder # even more compression
tar -jxvf filename.tar.bz2
#Options meaning:
#j - deal with bzipped file
#x - extract
#v - verbose output (lists all files as they are extracted)
#f - read from a file, rather than a tape device
tar -zxvf file.tar.gz
#Options meaning:
#z - deal with gz file
#x - extract
#v - verbose output (lists all files as they are extracted)
#f - read from a file, rather than a tape device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment