LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2004, 12:37 AM   #1
ranger225
LQ Newbie
 
Registered: Aug 2004
Posts: 29

Rep: Reputation: 15
Question 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....

Last edited by ranger225; 11-04-2004 at 12:40 AM.
 
Old 11-04-2004, 12:59 AM   #2
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
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
 
Old 11-04-2004, 01:17 AM   #3
7.e.Q
LQ Newbie
 
Registered: Nov 2003
Posts: 25

Rep: Reputation: 15
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).
 
Old 11-04-2004, 01:23 AM   #4
ranger225
LQ Newbie
 
Registered: Aug 2004
Posts: 29

Original Poster
Rep: Reputation: 15
ok...thanx...but can i directly gzip a file or a folder without cretating a tar file?
 
Old 11-04-2004, 01:41 AM   #5
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
You can compress files using the gzip command without tarring.
 
Old 11-04-2004, 03:10 AM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Although taring multiple files together often seems to reduce the file size when gzipped.

--Ian
 
Old 11-04-2004, 03:17 AM   #7
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 126

Rep: Reputation: 15
i don't think you can ftp a folder, but if you tar it, you can
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
Difference between .src.rpm & .tar.gz packages chinmay nautiya Linux - Software 18 08-10-2006 08:00 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM
difference btw tar.gz and .tgz chr15t0 Slackware 15 09-03-2002 11:29 PM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration