What is TGZ File and How To Extract TGZ In Windows and Linux? – POFTUT

What is TGZ File and How To Extract TGZ In Windows and Linux?

TGZ file is a tar archive which is compressed with the Gzip compression algorithm. Linux operating systems provide tar and gzip by default. A tar archive is created in order to make multiple files and directories single file with a tar archive. And then gzip is used to compress this tar which will create a TGZ file.


As stated previously TGZ is tar and gzipped file. TGZ can be also expressed as tar.gzTar is for tar archive and gz is gzip archive.

TGZ Exract Applications For Windows

There are a lot of tools which can be used to create or extract TGZ file. We will list the most popular application for TGZ below.

  • File Viewer Plus
  • WinRAR
  • Winzip
  • 7zip

List TGZ File Information

We will start by printing the TGZ file information. We will use file command which will print information like file type, last modified time, original size etc.
<pre class="">$ file ls-dyna_example.tgz</pre>

List TGZ File Information
List TGZ File Information

<h1>Extract TGZ For Linux</h1>
Linux distributions like Ubuntu, Debian, Mint, Kali, Fedora, CentOS, RedHat provides requires tools
tarandgzipfrom applications repositories. These tools are installed by default.
<pre class="">$ tar xzvf ls-dyna_example.tgz</pre>
Extract TGZ For Linux
Extract TGZ For Linux

<h1>Extract For Windows with 7zip</h1>
Extracting TGZ files in Windows is very easy. In this case, we will use
7zip` . 7zip is a very popular and useful compression tool which supports different compression algorithms like 7z, rar, zip, tar, gzip etc.

We will right click to the TGZ file and click Extract Here like below.

This will decompress gzip part and create a tar file. We will again Rigth Click and then click to the Extract Here which will decompress the tar file like below.

As we can see the decompressed file will not be deleted automatically.

Leave a Comment