LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   difference between tar and gz? (https://www.linuxquestions.org/questions/linux-newbie-8/difference-between-tar-and-gz-250897/)

ranger225 11-03-2004 11:37 PM

difference between tar and ....?
 
hi friendz,
can anyone tell me wat is the difference between tar and gz? y is tar used for? n after creating tar file, is it a compulsion to gzip it? does tar compress a file? n in linux most of the files rather applications are with ".tar.gz" extension....i am totally confused between tar and gz ......n can i ftp a tar file? plz help me......


bye....

vxc69 11-03-2004 11:59 PM

Go here for information on Tar and Gzip.

In a nutshell:
*tar.gz is like *.zip on windows. Yes you can download tar files via ftp.


Also:
*.tar.bz2 is pretty much the same as *tar.gz files.

vxc

7.e.Q 11-04-2004 12:17 AM

Well, the tar file is an archive that contains all the files you packed into it. It does not compress anything. It just stores the files in one "container"-file. What you do with gzip is compress this container-file. That's why it is called .tar.gz. It is a tar file (.tar) that is compressed with gzip (.gz) or bzip2 (.bz2).

It's as simple as putting a few things (the files) into a box (the tar archive) and putting the hole box into a shrinker (gzip).

ranger225 11-04-2004 12:23 AM

ok...thanx...but can i directly gzip a file or a folder without cretating a tar file?

vxc69 11-04-2004 12:41 AM

You can compress files using the gzip command without tarring.

IBall 11-04-2004 02:10 AM

Although taring multiple files together often seems to reduce the file size when gzipped.

--Ian

robert644 11-04-2004 02:17 AM

i don't think you can ftp a folder, but if you tar it, you can


All times are GMT -5. The time now is 03:55 AM.