log files .gz in windows | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rohan_Garg

Hi @gbis1719,

 

It is easier to extract and read gzip files on linux system as compared to windows.

For windows, you can install Linux on windows using WSL. (Ubuntu WSL is available on Microsoft Store)

 

You can then use the gunzip command as shown below -

gunzip filename.log.gz

Or

gzip -d file.gz

This converts the .log.gz file to simply .log file. Hope this helps!

There are other ways as well. Please find the below blog -

https://linuxize.com/post/how-to-unzip-gz-file/

 

Thanks,

Rohan Garg

2 replies

SivakumarKanoori
Community Advisor
Community Advisor
March 17, 2023

@gbis1719 : how are you extracting it , which tool you are using to extract .

Thanks,Siva
gbis1719Author
Level 2
March 17, 2023

i am not using any tool, just removing .gz

Rohan_Garg
Community Advisor
Rohan_GargCommunity AdvisorAccepted solution
Community Advisor
March 17, 2023

Hi @gbis1719,

 

It is easier to extract and read gzip files on linux system as compared to windows.

For windows, you can install Linux on windows using WSL. (Ubuntu WSL is available on Microsoft Store)

 

You can then use the gunzip command as shown below -

gunzip filename.log.gz

Or

gzip -d file.gz

This converts the .log.gz file to simply .log file. Hope this helps!

There are other ways as well. Please find the below blog -

https://linuxize.com/post/how-to-unzip-gz-file/

 

Thanks,

Rohan Garg

gbis1719Author
Level 2
March 17, 2023

and how to do without linux in windows??

Rohan_Garg
Community Advisor
Community Advisor
March 17, 2023

Hi @gbis1719

 

You can use WinZip or 7-Zip. I haven't tried it before but it should work nonetheless.

 

Also, you can refer the below URLs-

https://www.bls.gov/help/instructions-for-opening-gz-files.htm

https://www.winzip.com/en/learn/file-formats/gz/

https://www.wikihow.com/Extract-a-Gz-File

 

Thanks,

Rohan Garg