> 6. List contents of tar.gz and extract only one file
> tar -ztvf file.tgz
> tar -zxvf file.tgz filename
Tar no longer requires the modifier for the compression when extracting an archive. So no matter if it's a .tar.gz, .tar.Z, .tar.bz2, etc you can just use "tar xvf"
> tar -ztvf file.tgz
> tar -zxvf file.tgz filename
Tar no longer requires the modifier for the compression when extracting an archive. So no matter if it's a .tar.gz, .tar.Z, .tar.bz2, etc you can just use "tar xvf"