Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unzip tar.gz in Windows

Tags:

batch-file

tar

I would like to unzip Filename.tar.gz to Filename using single command in windows batch script All the files inside zip should go inside the Filename Folder I am trying to do in windows . I am not getting correct output. Can anyone suggest an idea

like image 459
Nirmal Anand Avatar asked Dec 05 '14 12:12

Nirmal Anand


People also ask

How do I unzip a tar GZ file?

Simply right-click the item you want to compress, mouseover compress, and choose tar. gz. You can also right-click a tar. gz file, mouseover extract, and select an option to unpack the archive.


3 Answers

Windows Command line now supports tar from Windows 10 insider build 17063. You may try run the below command in cmd or PowerShell to see if it works:

tar xzvf your-file-name.tar.gz
like image 95
Weifeng Avatar answered Jan 03 '23 23:01

Weifeng


7 zip can do that: http://www.7-zip.org/

It has a documented command line. I use it every day via scripts.

Plus: it is free and has 32 and 64 bit versions.

like image 35
user_0 Avatar answered Jan 04 '23 00:01

user_0


Windows 10 command line supports tar command

Write the tar command as general to the Linux terminal.

tar -zxvf tar-filename.tar.gz --directory destination-folder

like image 33
Karishma Sukhwani Avatar answered Jan 04 '23 01:01

Karishma Sukhwani