Linux

How to extract a tar.gz file in Linux

Written by Ian Carnaghan · 11 sec read >

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
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. In my spare time I teach undergraduate classes in web development. Profile

Leave a Reply

avatar
  Subscribe  
Notify of