tar -z uses gzip
bzip2 compresses more but slower.
http://jeremy.zawodny.com/blog/archives/000953.html
http://en.wikipedia.org/wiki/Bzip2
tar -cvjf new.tar dir_or_files
tar -xvjf new.tarOr should there be a "j" in the ".tar" so people know they need 'j' to extract? Like:
tar -cvzf new.tar.Z dir_or_files
tar -xzvf new.tar.Z
There is a convention for the -z flag at least..a tar of directory "foo" would be called:
ReplyDeletefoo.tar.gz
sometimes people do
foo.tgz
I prefer the former.