Page 1 of 1

need some info

Posted: Tue Jul 11, 2006 9:10 am
by kebabas
how to make .tar.gz archive?
or there is another way to extract .rar .zip archives in unix.
:oops:

don't be very critical, i'am new to these things.

Posted: Tue Jul 11, 2006 4:41 pm
by caesar
tar -cf archive.tar directory/file
gzip archive.tar
and will result in a tar.gz archive, as for unpacking a zip/rar archive try gunzip and google for the echivalent of rar.

Posted: Tue Jul 11, 2006 7:44 pm
by De Kus
caesar wrote:tar -cf archive.tar directory/file
gzip archive.tar
I prefer:
tar cfz archive.tgz directory/file(s)

also a good choice is:
tar cfj archive.tar.bz2 directory/file(s)

for zip there is an "unzip" and for rar i believe there is an "unrar" which however needs to be installed first... I am pretty sure some of the GUI based archieving tools support these (often just an interface to the CLI tools in the end...)