This might be a duplicate question but I could not find any reference to my problem anywhere. I have the following structure:
DirA
- DirB
- DirC
- FileX
I want an archive with this structure:
Arch.tar
- DirB
- DirC
- FileX
I am running this command :
tar -czvf Arch.tar -C DirA DirB DirC FileX
. But I cannot figure out why tar zips it like the following structure:
Arch.tar
- Arch
- DirB
- DirC
- FileX
Any suggestions or inputs?