How to use the gzip command In Linux
Step 1 : Use they key combination Ctrl+Alt+T to open the terminal. The terminal is a command line interface that allows for more direct control over the system. You can also open it from the application menu if you so choose.
Ctrl+Alt+T
Step 2 : Run the gzip command with the -d flag to decompress the gz file. Here -d is the shorthand for -decompress. Using this command allows us to decompress the file with ease in a single step. As we will be able to see, the file is now decompressed. However as we can also notice, running gzip removes the compressed file after decompression. This means only the uncompressed file will remain after execution of this command and you will loose access to the compressed file.
gzip -d filename.gz
How to Unzip (Open) Gz File
If you have been using Linux for some time, you must have come across a “gz” file. Have you ever wondered, what is it and how do you actually open it?
Worry not, in this article, we deep dive into the details of gz file and help you overcome your doubts about it.
Table of Content
- What is gz file?
- How to open gz file
- Method 1: Using the gzip command
- Method 2 : Using graphical archive manager
- Method 3 : Using gunzip command
- Method 4 : Using tar command [ONLY for compression in the tar.gz format]