15Mar/100
How To extract a single file from an archive
To extract a single file from an archive, do the following:
# tar zxf archfile.tgz –include=”filetoextract”
You can use patterns as well:
# tar zxf archfile.tgz –include=”filetoextract*”
‘filetoextract’ should contain the full path.
To check file’s full path, do the following:
# tar tf archfile.tgz
