LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   zip folder (https://www.linuxquestions.org/questions/linux-newbie-8/zip-folder-334475/)

tjgadu 06-17-2005 02:25 AM

zip folder
 
I usually zip a folder having subdirectories int he following way:

tar czvf folder.tar.gz folder

How can I zip a folder so that the result is of type .gz

Is there a way to zip folders so that they can be unzipped under windows?

can the folder folder.tar.gz be unzipped under windows?

zulfilee 06-17-2005 02:31 AM

Ultimatezip is one GPL software that you can use in windows to unzip tgz files

You will have to unzip the file twice anyway.

Any to zip a file and create a gz extension you have to tar the file first
and go for
gzip filename

Thats same as 'tar zcvf'

Why dont you just zip the folder using
zip -r folder
command.
It will be compatible both in linux and in windows[can be unzipped using winzip]

Cheers
Z


All times are GMT -5. The time now is 05:09 PM.