Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

Can I untar just one file in a tar ?

Lets say I am building servers and I have the correct copies of the 20 most messed up files.

I have a problem with a server, can I untar just 1 of the 20 files ?

I am in a linux aix solaris shop.  I only want to untar to the identical platform :)
0
TIMFOX123
Asked:
TIMFOX123
1 Solution
 
jeremycrussellCommented:
Yes, as long as you know the file name and path.

i.e.

tar xf file.tar path/in/tarfile/filename
0
 
TIMFOX123Author Commented:
this works !!
thx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now