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

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.


Solution 1:

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.

Solution 2:

There's no difference at all. .tgz is simply shorthand for .tar.gz.