One often obtains gzipped tar files, named like
myfile.tgz or myfile.tar.gz. This document
explains how to expand such files.
Suchs files generally contain multiple files/directories combined
using the command tar and then compressed using the
command gzip.
Let's consider a file named myfile.tgz
You need to call gzip and tar separately,
but you can command them into a single command using "pipes".
gzip -dc myfile.tgz | tar tvf -
gzip -dc myfile.tgz | tar xvf -
The linux version of tar can automatically call
gzip, so you need only call tar and you
don't need to use a pipe.
tar tzvf myfile.tgz
tar xzvf myfile.tgz