My Tech Notes
Search This Blog
tar: exclude leading components in the path when extracting an archive
If a archive with structure of /dir1/dir2/dir3/ and I want to exclude /dir1/dir2 when extracting:
tar xvf my.tar --strip-components=2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment