Skip to content

Instantly share code, notes, and snippets.

@AdamGagorik
Last active September 17, 2015 16:20
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 AdamGagorik/ef7b2fbb3c6846f398f1 to your computer and use it in GitHub Desktop.
Save AdamGagorik/ef7b2fbb3c6846f398f1 to your computer and use it in GitHub Desktop.
Create and extract tar archives
# create
tar -cvf output.tar input/*
gzip output.tar
# The name of the tar, "output.tar", does not matter.
# When extracted, the files will expand into a directory named "input".
# extract
tar -xvf output.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment