The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
tar/gzip/gz...which one to use? abhijeetkul UNIX for Advanced & Expert Users 5 03-24-2006 03:00 AM
TAR and GZIP help VandeMatram UNIX for Dummies Questions & Answers 3 03-17-2006 07:35 AM
gzip alisevA3 UNIX for Dummies Questions & Answers 2 08-12-2004 12:29 PM
gzip mfran2002 SCO 1 12-01-2003 10:23 AM
GZIP help, please! alan UNIX for Dummies Questions & Answers 2 07-25-2003 04:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-27-2007
sam99 sam99 is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 39
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
  #2 (permalink)  
Old 11-27-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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.


Code:
tar cf te55.tar te55 
gzip te55.tar

  #3 (permalink)  
Old 11-27-2007
sam99 sam99 is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 39
can i open this tar gzip file using winzip in MS windows...

regards,
sam
  #4 (permalink)  
Old 11-27-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by sam99 View Post
can i open this tar gzip file using winzip in MS windows...
Yes

( as long as you transfer the file as "binary" )
  #5 (permalink)  
Old 01-30-2008
aabhas.bhargava aabhas.bhargava is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 2
Hey awesome .. The thread really helped me.. Thanks a lot
  #6 (permalink)  
Old 01-30-2008
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325
U can use winrar to uncompress all types of UNIX files...( .tar ,.gz. .z, .Z, .bz2)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0