extract tar.gz folder linux code example
Example 1: extract from tar gz into folder
mkdir foo
tar -xzf bar.tar.gz -C foo
Example 2: extract tar.gz
tar -xf archive.tar.gz
Example 3: extract tar.gz linux command line
tar xvzf file.tar.gz
mkdir foo
tar -xzf bar.tar.gz -C foo
tar -xf archive.tar.gz
tar xvzf file.tar.gz