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.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
empty space in java command through unix shweta_d Shell Programming and Scripting 2 06-27-2007 02:37 PM
sorting dir with respect to their nr., of files atticus Shell Programming and Scripting 0 06-07-2006 03:05 PM
UNIX export command - memory space Nomaad UNIX for Advanced & Expert Users 2 04-10-2006 05:49 PM
how to install gzip.tar in sco unix os dsun5 UNIX for Dummies Questions & Answers 1 10-09-2001 05:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2008
Registered User
 

Join Date: Mar 2008
Posts: 23
Amoung tar and gzip whiich unix command is more practical with respect to space manag

Hi All

Can any body help me out.



Amoung tar and gzip whiich unix command is more practical with respect to space management and file restoration.

Eg if I use tar or gzip which will be more helpful to reduce the space and during the file restoration.

Please help me out.

regards
manas
Reply With Quote
Forum Sponsor
  #2  
Old 03-26-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 160
tar is not a compression technique. Originally designed for tape archive, tar is now used for grouping files together and move them. A typical example would be grouping all files related to a package for delivery.

gzip uses a compression algorithm which can be exploited to save space. Option -9 in gzip provides maximum compression.

The usual method of delivering packages is tar all files and then gzip the tar file. Hence your package will look like my_package.tar.gz

We then need to apply gunzip and then tar extraction on this package at the receiving end to see the files in the package.
Reply With Quote
  #3  
Old 03-26-2008
Registered User
 

Join Date: Sep 2006
Location: Mysore, India
Posts: 160
By package, I mean a set of codes (e.g., unix scripts).
Reply With Quote
  #4  
Old 03-26-2008
Registered User
 

Join Date: Mar 2008
Posts: 23
Hi
Thanks a lot for your valuable information.

regards
manas
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:32 AM.


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

Content Relevant URLs by vBSEO 3.2.0