Gzip files are noted by the extension
.gz
To untar a gzipped file and retain the
permissions and maintain the established directory structure in the
compressed file, use the following command:
tar zxvf tarfile.tar.gz
(sometimes you must leave out the z in zxvf)
The most common tar extraction
parameters for gzip files are:
- x - Extract the files
- z - Use compression (GNU version
only).
- v - Be verbose about it
(output status of its extraction)
- f - Use this file
Note that tar is picky and that it is
advisable to use the sequence zxvf or xvf as the order is important.
|