![linux open terminal linux open terminal](https://www.how2shout.com/wp-content/uploads/2019/06/Open-command-terminal-Linux.jpg)
In our case, since we already had an extracted file with the same name in our Home directory because of running the command shown in Method # 2, our terminal prompted us if we want to overwrite this file or not, therefore, we proceed by entering a “y” as shown in the following image. gz file, which in our case was gzFile.txt. Here, you can replace FileName with the name of your. gz file in our Home directory by running the following command in our terminal: For using the “gzip” command with the “-d” flag, you will have to perform the following steps:įor demonstrating the first three methods, we will first create a. This method is helpful when you wish to extract the actual file while deleting the. Method # 1: Using the “gzip” Command with “-d” Flag: We have listed down all those methods below: There are multiple different methods in which we can extract and open a. Note: The flavor of Linux that has been used to demonstrate these methods is Linux Mint 20. Today, we will explore the methods of extracting and opening a. gz file format is a very commonly used compressed file format for the Linux operating system. When you want to transmit a file from one end to another, its size plays a very important role in deciding whether you want to send it as it is or compress it. We know that a file in a computer system can be as small as a few Bytes or as large as a thousand Gigabytes.