Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unzip a .gz file using Git Bash on Windows?

I have tried to open a .gz file, How can i proceed ?

Ex: filename=details_IMST_20180626210209.dat.gz

Tried to open with notepad, git bash using less command. But couldn't open as it is zipped. suggest way to open the file.

like image 774
Linga Swamy Parandha Avatar asked Jun 27 '18 10:06

Linga Swamy Parandha


1 Answers

Go to the file location in Git Bash and run the below command.

$ gunzip details_IMST_20180626210209.dat.gz

After executing that command, details_IMST_20180626210209.dat got created (.gz was removed).

We can open that file from notepad/notepad++.

like image 188
Linga Swamy Parandha Avatar answered Oct 04 '22 14:10

Linga Swamy Parandha