Skip to content

Instantly share code, notes, and snippets.

@mad4j
Last active August 29, 2015 14:01
Show Gist options
  • Save mad4j/9575013aee8adfa89000 to your computer and use it in GitHub Desktop.
Save mad4j/9575013aee8adfa89000 to your computer and use it in GitHub Desktop.
essential usage of tar command
#create a gzip compressed archive
tar -czvf archive.tgz source1/ [source2/ ...]
#extract files from a gzip compressed archive
tar -xzvf archive.tgz
# c: create archive
# x: extract archive
# v: verbose
# z: compress/uncompress using gzip (*.tar.gz or *.tgz files)
# j: compress/uncompress using bzip2 (*.tar.bz2 files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment