Last active
August 29, 2015 14:06
-
-
Save mattfenwick/c50b58e074e1654cd035 to your computer and use it in GitHub Desktop.
examples using unix utilies
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
# pack a file | |
gzip -c workflows.tar > workflows.gzip | |
# unpack a file | |
gzip -c -d workflows.gzip > unzipped.tar |
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
# 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