How to extract a tar.gz file in Linux

No Comments

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

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link