Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are tar.gz and tgz the same thing? [closed]

Tags:

linux

tar

I created .tgz file with tar czvf file command.then I ended up with a tgz file. I want to know the difference between it and tar.gz.

like image 427
mko Avatar asked Jul 18 '12 05:07

mko


People also ask

Is TGZ a tar?

A file with the TGZ or GZ file extension is a GZIP Compressed Tar Archive file. They're made up of files that have been placed in a TAR archive and then compressed using Gzip. These types of compressed TAR files are called tarballs and sometimes use a "double" extension like TAR.

What is Tar GZ called?

GZ: A TAR. GZ file is a version of a tarball compressed with the gzip algorithm. TAR is the file extension for tarballs, whereas GZ denotes gzip. The TGZ file extension is also used sometimes instead of TAR.


1 Answers

I think in the old package repo days, .tgz was used because files on DOS floppies could only have three letter extensions. When this limitation was removed, .tar.gz was used to be more verbose by showing both the archive type (tar) and zipper (gzip).

They are identical.

like image 110
Tommy Avatar answered Dec 08 '22 05:12

Tommy