Last active
August 27, 2019 08:11
-
-
Save Guibzs/b588864903dcda327dfc8d20b97cf193 to your computer and use it in GitHub Desktop.
Bash ~ Compress and Extract files
This file contains 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
# Compress | |
tar -cvf folder.tar folder/ | |
gzip folder.tar | |
# Extract | |
tar -xvf folder.tar | |
gzip -d folder.tar.gz |
This file contains 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
# Compress | |
zip file.zip file | |
zip -r file.zip folder | |
# Extract | |
unzip file.zip | |
unzip file.zip -d folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment