How to extract tar.gz files on Linux guide

CHere's how to extract *.tar.gz files on Linux. To extract the contents of the tar.gz file, there is no need to use additional applications. You only need to execute this command:


tar -xzvf namafile.tar.gz


The details of these parameters are explained as follows:

  • -x : gives instructions for the file to be extracted.
  • -z : using the gunzip/gzip algorithm in the extraction process.
  • -v : the process information will be printed in full. The output can be read easily.
  • -f : Will be saved as a file instead of being displayed on screen.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.