which one to use?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users which one to use?
# 1  
Old 12-16-2005
Bug 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
# 2  
Old 12-16-2005
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
# 3  
Old 12-17-2005
Bug

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
# 4  
Old 12-17-2005
Here's how you do it:
Code:
cd /dir/to/gzip; tar -cf - * | /path/to/gzip > /path/to/tar.gz_file

# 5  
Old 12-18-2005
Or, there's the "cleaner" way...
Code:
tar -zcf file.tar.gz directory_name

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question