Last active
August 29, 2015 14:01
-
-
Save mad4j/9575013aee8adfa89000 to your computer and use it in GitHub Desktop.
essential usage of tar command
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
#create a gzip compressed archive | |
tar -czvf archive.tgz source1/ [source2/ ...] | |
#extract files from a gzip compressed archive | |
tar -xzvf archive.tgz | |
# c: create archive | |
# x: extract archive | |
# v: verbose | |
# z: compress/uncompress using gzip (*.tar.gz or *.tgz files) | |
# j: compress/uncompress using bzip2 (*.tar.bz2 files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment