Skip to content

Instantly share code, notes, and snippets.

@bleft
Created April 11, 2017 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bleft/033f64e72f047db4cc0c434d810adcf0 to your computer and use it in GitHub Desktop.
Save bleft/033f64e72f047db4cc0c434d810adcf0 to your computer and use it in GitHub Desktop.
create and extract tar archives
# 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