Last active
October 23, 2017 12:33
-
-
Save rxnlabs/90fc9d37d9f3d3c49e35 to your computer and use it in GitHub Desktop.
Command Line - Zip folder and all files (gzip, bz2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -cvzf filename.tar.gz folder | |
tar -cvjf filename.tar.bz2 folder # even more compression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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