ubuntu decompress tar.gz code example
Example 1: bash command for unzipping tar.gz files
tar -zxvf file.tar.gz
Example 2: decompress tar.gz
tar -xvf file.tar.gz
Example 3: untar tar.gz
tar -xzf file.tar.gz
Example 4: how to unzip Tar file
tar -xvf filename.tar.gz
tar -xvf filename.tar.gz -C /path_name_for_unzip/
-x : extract
-C : specified directory
-v : Verbosely show the .tar file progress.
-f : filename of archive file
Example 5: extract tar.gz linux command line
tar xvzf file.tar.gz
Example 6: unrachive .tar.gz
tar -xvzf community_images.tar.gz
Also, to extract in a specific directory
for eg. to extract the archive into a custom my_images directory .
tar -xvzf community_images.tar.gz -C my_images