Created
June 23, 2012 19:59
-
-
Save greypants/2979743 to your computer and use it in GitHub Desktop.
SHELL: Tar
This file contains 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
# 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