Created
April 11, 2017 14:08
-
-
Save bleft/033f64e72f047db4cc0c434d810adcf0 to your computer and use it in GitHub Desktop.
create and extract tar archives
This file contains hidden or 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 archive | |
# c: create v: verbose f: output file | |
tar -cvf target.tar /folder | |
# zipped: | |
tar -czvf target.tar.gz /folder | |
# extract archive to | |
# folder must exist! | |
tar -zxvf target.tar.gz -C /folder | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment