/ Published in: Bash
commands for dealing with tar files
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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