blog.up-link.ro android bsd linux unix & open-source world

15Mar/100

How To extract a single file from an archive

WP Greet Box icon
Hello there! If you are new here, you might want to subscribe to the RSS feed or subscribe via E-mail for updates on this topic.

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

Print This Post Print This Post
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


*

No trackbacks yet.