How to extract Tgz files in Linux
To decompress a Tgz file (also known as a tar.gz file), you can use the following command:
tar -zxvf file.tgz
The parameters represent the meaning:
- -z: indicates the use of the gzip program when decompressing
- -x: indicates decompression operation
- -v: stands for displaying detailed information
- -f: Specifies the file to be decompressed.
Replace file.tgz with the name of the Tgz file you want to unzip. After executing the above command, the file will be unzipped into the current directory.