LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2006, 08:56 PM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
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.
 
Old 07-27-2006, 09:08 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
No, that's what an archiver is for, like tar. You want to archive it using tar, and then compress it using gzip.
 
Old 07-27-2006, 09:20 PM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
thanks for your reply, can you teach me the procedure on how to compress and extract files and directories?
 
Old 07-27-2006, 09:55 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
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
 
Old 08-09-2006, 12:22 AM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Thanks i will just read the syntax in "man tar"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls entire subdirectory tree snocked Linux - General 6 07-27-2006 09:29 PM
How to move files from a subdirectory to another? Akhran Linux - Newbie 4 04-07-2006 06:41 AM
where is my subdirectory blotch Linux - Newbie 22 06-18-2005 12:43 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 04:17 PM
sftp subdirectory how to ?? x2000koh Linux - General 1 12-16-2002 02:32 AM


All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration