The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-15-2005
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Smile which one to use?

Hello all,
i have gathered almost 35K files in a folder & size of the folder rises above 9GB.

now i need to compress or zip or gzip or tar this folder so that it can save me some space.

if i am not mistaken,zip does not compress folders above 2 GB ( i mayb wrong)
& i haven't used compress on a folder.

I am quite new to "tar & gzip" ( it might help ,i guess)

Appreciate your time & help.

Regards
Abhijeet
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-16-2005
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,572
Stumble this Post!
i dont think so,

gzip can compress files above 2GB

version i am referring to is gzip 1.2.4 with the beta version patch 1.3.3

the only problem (which was not frequent) that gzip 1.2.4 had is that
there are some chances for it to crash if the <filename> of the file to be compressed is greater than 1024 characters
Reply With Quote
  #3 (permalink)  
Old 12-17-2005
Registered User
 

Join Date: Oct 2005
Location: Mumbai,India
Posts: 58
Stumble this Post!
Smile

thanks matrixmadhan,

can u jot down the syntax of "gzip" ?
i want to remove folder & have its zip file created..

like i do with zip
e.g zip -rm <folder_name> <folder_name>
so it creates a zip file named as folder_name.zip


regards
abhijeet
Reply With Quote
  #4 (permalink)  
Old 12-17-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Stumble this Post!
Here's how you do it:
Code:
cd /dir/to/gzip; tar -cf - * | /path/to/gzip > /path/to/tar.gz_file
Reply With Quote
  #5 (permalink)  
Old 12-18-2005
Sergiu-IT's Avatar
Registered User
 

Join Date: Mar 2005
Location: Transilvania
Posts: 125
Stumble this Post!
Or, there's the "cleaner" way...
Code:
tar -zcf file.tar.gz directory_name
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:33 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0