Last active
January 2, 2018 23:35
-
-
Save abhiomkar/5532033 to your computer and use it in GitHub Desktop.
zip tar cheatsheet
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 file | |
zip compressed.zip file_name.txt | |
# Compress Folder | |
zip -r compressed.zip folder_name/ | |
# Uncompress zipped file to current directory | |
unzip compressed.zip | |
# Uncompress zipped to current directory to specific location | |
unzip compressed.zip -d ~/Documents | |
# Compress a file / folder | |
tar zcvf compressed.tar.gz folder_name | |
# Uncompress a tar file | |
tar zxvf compressed.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment