How can I untar a sub directory?

Posted by Kristopher Ives on Stack Overflow See other posts from Stack Overflow or by Kristopher Ives
Published on 2010-04-16T05:58:25Z Indexed on 2010/04/16 6:03 UTC
Read the original article Hit count: 261

Filed under:
|

Suppose I have a tar that contains:

/                # Root directory
/level1/         # A sub directory
/level1/a.file
/level1/b.file
/level1/...      # The rest

How can I do something like tar -xf that would untar the contents level1/ like this:

/a.file
/b.file
/...       # The rest 

© Stack Overflow or respective owner

Related posts about tar

Related posts about linux