Search code examples
linuxgit-bashunzip

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.


Solution

  • 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++.