Last active
May 25, 2017 13:43
-
-
Save jbub/6192548 to your computer and use it in GitHub Desktop.
example usage of zip and tar archiving tools
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
# crossplatform, poor compression, fast | |
zip -r archive_name.zip path/to/compress | |
# extract zip in current directory | |
unzip archive_name.zip | |
# compress with tar, poor compression, very fast | |
tar cvf archive_name.tar path/to/compress | |
# extract tar to /path/to/extract | |
tar xvf archive_name.tar -C /path/to/extract | |
# compress with gzip, good compression, fair speed | |
tar zcvf archive_name.tar.gz path/to/compress | |
# extract gzip to /path/to/extract | |
tar zxvf archive_name.tar.gz -C /path/to/extract | |
# compress with bzip2, best compression, slowest | |
tar jcvf archive_name.tar.bz2 path/to/compress | |
# extract bzip2 to /path/to/extract | |
tar jxvf archive_name.tar.bz2 -C /path/to/extract |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment