Is there anyway to remove or strip the leading directory when extracting a tar file. I didn't see a option or understand it anyway in the man page.
Here's an example of what I would like to do so my question doesn't get confused.
I want to install the "essential-20061022.tar.bz2" for Mplayer in the directory of "/usr/local/lib/codecs/ so
I run the following command
Code:
tar xvjf essential-20061022.tar.bz2 -C /usr/local/lib/codes
Which of course all I did was direct the output of the tar command so I end up extracting the file to /usr/local/lib/codes/essential/
But what I want to do is install the files and strip the leading directory "essential".
Maybe I did not confuse everyone.