#gzip
#compress
tar czvf testZipFile.tar.gz myDir/
#decompress
tar xzvf testZipFile.tar.gz
#view files without decompressing
tar tzvf testZipFile.tar.gz
#bzip2
#compress
tar cjvf testZipFile.tar.bz2 myDir/
#decompress
tar xjvf testZipFile.tar.bz2
#view files without decompressing
tar tjvf testZipFile.tar.bz2
Last active
November 24, 2016 22:01
-
-
Save agaro1121/cddde729dde598a7c570099699d60b19 to your computer and use it in GitHub Desktop.
The tar Command
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment