Originally Posted by willyweedle
It shames me to ask this. How do I open *.tgz files?
the first response is correct but for an expanded explanation.
.tgz short for .tar.gz
tar files are archives which contain multiple files. kind of like a zip file but without compressing them.
.gz infers that a file is compressed using gzip.
so file.tar.gz is a gzip compressed tar file.
basically one is not required for the other, you can compress a single file with gzip without tarring it, and files can be tarred without being gzipped.
other compression methods can be used, you may see files with a .tar.bz2 extension. this is similar to the above, but uses bzip2 compression which is better than gzip.
uncompressing a .tar.bz2 file is similar to the tar.gz. tar -xjvf file.tar.bz2
read the man file on tar, so you understand the flags being passed to it.