I have a tar file(test.tar) which content is:
src/com/package/test.h
when I extract this file by 'tar -xvf test.tar', it will create the directory 'src/com/package' in the current directory. I want to remove the directory 'src/com' which means after extract the tar, only 'com/package/test.h' is extracted. How can I do this?