LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-31-2002, 10:12 AM   #1
c0c0deuz
Member
 
Registered: Aug 2001
Location: Qc, Canada
Distribution: RedHat, Mandrake, FreeEOS
Posts: 336

Rep: Reputation: 30
tar and gzip


I understand that tar is an archiving utility and that gzip is a compression utility.
I tought that archiving was a way to compress the data so it can be put aside without taking much room on the disk.

What did i misunderstood, why compressing a compressed file?
 
Old 10-31-2002, 10:22 AM   #2
daxy
Member
 
Registered: Oct 2002
Location: the Netherlands
Distribution: Debian - Sid
Posts: 33

Rep: Reputation: 15
With tar you can collect several files to 1 file. then use gzip to compress it (yes, if you collect several zipped files it won't make any difference)...
 
Old 10-31-2002, 03:04 PM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
The tar utility, which comes from (t)ape (ar)chive, does not compress files (except for any slack space). The gzip utility does compress files. So, if you "tar" a bunch a of files together into an archive, the total length of that "tar" file is not significantly different from the total space those files occupied on disk (again, except for any slack). Then gzip actually crunches the archive file down to a smaller size by applying whatever compression algorithm it incorporates.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
tar and gzip - how do i point to a output directory RedHat123 Linux - Newbie 4 04-20-2011 10:48 AM
How to untar and unzip .tar.gzip.part file? linuxharsha Linux - Software 2 02-14-2004 10:37 AM
gzip-1.2.4.tar Install ljc Linux - General 3 01-20-2002 09:44 PM
dd, tar and gzip nabil Linux - General 3 01-18-2002 04:51 PM
Need Serious Help With Tar And Gzip!! Please! rootlinux Linux - General 2 12-16-2001 01:39 PM


All times are GMT -5. The time now is 12:08 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration