Are tar.gz and tgz the same thing?

mko picture mko · Jul 18, 2012 · Viewed 53.7k times · Source

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.

Answer

Tommy picture Tommy · Jul 18, 2012

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.