LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use GZIP in recursive subdirectory (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-gzip-in-recursive-subdirectory-468380/)

RMLinux 07-27-2006 07:56 PM

How to use GZIP in recursive subdirectory
 
Hi to all:

i want to compress multiple files and directories to only one file? is it possible to use gzip only?

if not can you give me your suggestion guys :)

thanks.

spooon 07-27-2006 08:08 PM

No, that's what an archiver is for, like tar. You want to archive it using tar, and then compress it using gzip.

RMLinux 07-27-2006 08:20 PM

thanks for your reply, can you teach me the procedure on how to compress and extract files and directories?

JimBass 07-27-2006 08:55 PM

You need to read the man pages. Do
Code:

man tar
and think about it. Or google for tar directions. Some self initiative doesn't hurt anybody.

The generic command would be:
tar -c(maybe also vfz, vfj) name.tar.(bz or gz) /path/to/whatever

Peace,
JimBass

RMLinux 08-08-2006 11:22 PM

Thanks i will just read the syntax in "man tar"


All times are GMT -5. The time now is 10:03 AM.