Skip to content

Instantly share code, notes, and snippets.

@greypants
Created June 23, 2012 19:59
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 greypants/2979743 to your computer and use it in GitHub Desktop.
Save greypants/2979743 to your computer and use it in GitHub Desktop.
SHELL: Tar
# Creates a bzip2 file (smaller than tarball)
tar -cjf backup.tar.bz2 directory
# which can be decompressed using...
tar -xjf backup.tar.bz2
# remove directory
rm -r -f YourDirectory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment