Expand my Community achievements bar.

SOLVED

log files .gz in windows

Avatar

Level 2

I am unable to extract .gz log files. I am getting below weird text.

 

gbis1719_0-1679047887047.png

 

Can anyone help ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

6 Replies

Avatar

Community Advisor

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

Thanks,
Siva

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

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