Select Page

How to extract a tar.gz file in Linux

Execute the following command

tar -zxvf archive.tar.gz

This command will extract the contents of the archive.tar.gz file in the current directory


The options -zxvf mean the following

-z = filter the archive through gzip
-x = extract files from an archive
-v = verbose
-f  = use archive file or device ARCHIVE

Last Updated On April 07, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.