Return to Snippet

Revision: 14613
at June 7, 2009 17:43 by stiobhart


Initial Code
# create:
tar -cvzf <output filename> <directory>

# this means:
# -c = create new archive
# -v = be verbose
# -z = compress using gzip
# -f = filename to create for the new archive

# for the directory dinnae put "directory/*" just  "directory" with no slash
# 
# filenames should end in '.tar.gz' as they are tar'ed then zipped
# 
# expand [on server]:

tar -xvf <filename>.tar.gz

# if it's a tar.bz2 archive, use the following:

tar -jxvf <filename>.tar.bz2

Initial URL


Initial Description
commands for dealing with tar files

Initial Title
*nix - tar create and expand archives

Initial Tags
server, unix

Initial Language
Bash