How is a TAR.GZ file created?
First, TAR combines the selected files and directory paths into one archive stream. GZIP then compresses that stream. The two stages produce a file commonly named .tar.gz or .tgz.