Use the following command to extract a .tar.gz archive file.
The following command will extract the .tar.gz archive file in the directory that you are working in.
tar -zxf whatever.tar.gz
If you want the .tar.gz archive to extract the contents to a specific location then replace /home/saveme with the exact location.
tar -zxf whatever.tar.gz /home/saveme