Skip to content

Instantly share code, notes, and snippets.

@mattfenwick
Last active August 29, 2015 14:06
Show Gist options
  • Save mattfenwick/c50b58e074e1654cd035 to your computer and use it in GitHub Desktop.
Save mattfenwick/c50b58e074e1654cd035 to your computer and use it in GitHub Desktop.
examples using unix utilies
# pack a file
gzip -c workflows.tar > workflows.gzip
# unpack a file
gzip -c -d workflows.gzip > unzipped.tar
# make a tar file
tar -cf <archive-filename> [filenames...]
tar -c some_directory/ > my_new_tar.tar
# list the contents of a tar file
tar -tf <archive-filename>
# extract a tar file
tar -xf <archive-filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment