LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-03-2004, 11:37 PM   #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-03-2004 at 11:40 PM.
 
Old 11-03-2004, 11:59 PM   #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, 12: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, 12: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, 12: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, 02: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, 02:17 AM   #7
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 135

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


Reply



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 02:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
Difference between .src.rpm & .tar.gz packages chinmay nautiya Linux - Software 18 08-10-2006 07:00 AM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM
difference btw tar.gz and .tgz chr15t0 Slackware 15 09-03-2002 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration