How to Unzip .tgz File Using Linux Terminal?
To Unzip .tar.gz File in Ubuntu, the following methods should be performed on the Linux Terminal. We will start with the best & highly used command to Decompress TGZ File.
Open the Terminal (Ctrl + Alt + T)
Open the terminal on your Linux system. You can do this by searching for “Terminal” in your application menu or by using the keyboard shortcut `Ctrl + Alt + T`
How to Unzip .tgz File Using the Linux Terminal?
If you’re new to Linux, you might find yourself faced with files that have the `.tgz`
extension. These files are archives that have been compressed using the tar and gzip utilities. Don’t worry if this sounds complicated! In this guide, we’ll show you how to easily unzip `.tgz`
files using two different methods: the `tar`
command and the `gunzip`
command. By the end of this tutorial, you’ll be able to extract the contents of .tgz
files with confidence.
Table of Content
- Understanding .tgz or .tar.gz Files
- Quick Highlights On TGZ File Format
- How to Unzip .tgz File Using Linux Terminal?
- Method 1: Unzip .tgz File Using the tar Command
- Method 2: Unzip .tgz File Using the gunzip Command