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