LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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, 08:08 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
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, 08: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, 08: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-08-2006, 11:22 PM   #5
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

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


Reply



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 08:29 PM
How to move files from a subdirectory to another? Akhran Linux - Newbie 4 04-07-2006 05:41 AM
where is my subdirectory blotch Linux - Newbie 22 06-18-2005 11:43 AM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
sftp subdirectory how to ?? x2000koh Linux - General 1 12-16-2002 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 AM.

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
Open Source Consulting | Domain Registration