Home Linux How to Extract .gz file in Linux System

How to Extract .gz file in Linux System

How to extract .gz file in Linux system?

In this article, you will get to know how to extract .gz file in Linux. The file .gz is compressed with gzip in Linux systems. To extract .gz file, we will use the gunzip command.

For example, we have a log.gz file. To extract we will use the following command.

$ gunzip log.gz
gunzip command
gunzip command

Extract tar.gz File

Read More: 17 linux Basic Commands with Examples

We can extract tar.gz file in the Linux system directly running tar command with z option.

$ tar xvzf log.tar.gz



That’s it. You have learned to extract .gz file on Linux system.

LEAVE A REPLY

Please enter your comment!
Please enter your name here