Reg: Gzip

Hi ,

I want gzip a folder te55 which has got 3 files test1.test2,test3

the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself...

Is it possible...

thanks in advance
sam

gzip only compresses, it does not package up groups of files.

For that I recommend "tar".

For gzipped tar file the normal extension is either ".tar.gz" or ".tgz".

So use "tar" to package up the directory into one file, the gzip that tar file.

tar cf te55.tar te55 
gzip te55.tar

can i open this tar gzip file using winzip in MS windows...

regards,
sam

Yes

( as long as you transfer the file as "binary" )

Hey awesome .. The thread really helped me.. Thanks a lot

U can use winrar to uncompress all types of UNIX files...( .tar ,.gz. .z, .Z, .bz2)