How to unpack .tgz file on a Linux

To unpack a .tgz file on a Linux system, use the following command:

tar -xvzf filename.tgz
  • x option is to extract the archive.
  • v option is for verbose output, it shows the progress of the unpacking process.
  • z option is to unpack the archive with gzip.
  • f option is to specify the archive file name.

Note: Replace “filename.tgz” with the actual name of your .tgz file.

Leave a Comment