LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Search this Thread
Old 04-03-2012, 01:52 PM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Rep: Reputation: Disabled
Question Naming file - tar.gz or tgz


Does it really matter, whether you name your tarball "file.tar.gz" or "file.tgz"? Or even just "file.tar" (GNU tar will know the compression method anyway). Why so many extensions for one compression method?
 
Old 04-03-2012, 02:23 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Do NOT name a tar.gz as .tar, it is annoying and it messes up some archive programs. There is no sense in it because it introduces ambiguity. You can have just a .tar that is not compressed.

You can use .tar.gz or .tgz as you like. The Slackware package manager make .tgz and .txz and will only accept these for install. Other than that, there is no reason to use one or the other. I prefer the shorter version .tgz.
 
1 members found this post helpful.
Old 04-03-2012, 07:39 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,518

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
no real difference and to RESTATE do NOT drop the gz bit
tar.gz
tgz
DO NOT name it file.T or file.tar


my personal preference is tgz or tbz2

i look at it as to do with being 40+ in age

the older crowd got used to .tar,tgz,gz
 
Old 04-04-2012, 04:09 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Original Poster
Rep: Reputation: Disabled
When I decompress compressed tarballs - may I not to specify a compression option? It works for me but is it a legit way?

Last edited by Mr. Alex; 04-04-2012 at 04:34 AM.
 
Old 04-04-2012, 07:50 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Yes, omitting the compression option is legit, since tar is able to detect that.
 
1 members found this post helpful.
  


Reply

Tags
gzip, tar, tarball, tgz


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a tar.gz-file to tgz-file ? Knasen Slackware 17 09-05-2006 05:44 AM
tar.gz to .tgz file? wombat53 Linux - Software 20 06-15-2005 09:31 AM
Quick...Someone Tell Me How To Open a Tar File in .tgz format njschroe Linux - Software 3 06-10-2005 05:58 AM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
D/l a .tgz.tar file..how to unzip Navop Linux - Newbie 1 03-13-2005 08:56 AM


All times are GMT -5. The time now is 07:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration