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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With