Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I want to view the following tar file , then tar show the following three files

from /var/tmp

       tar tvf  fix.tar

. .

but when I want to open the files to their directories

then I get error about /usr/cti/lib/swp/dir/ ,

please advice why tar cant open the under /usr/cti/lib/swp/dir ?

from /var/tmp

       tar xvfp  fix.tar
       tar: Removing leading `/' from member names
share|improve this question
You don't say what directory you're in when doing this, but have you tried looking for ./usr/cti/lib/swp/dir/ (note leading dot)? – MadHatter Oct 16 '12 at 12:50
lead dot ? I dont have ! – yael Oct 16 '12 at 12:54
You misunderstand; . refers to the current working directory. I'm suggesting that, whatever directory you're in when you run the tar xvfp command, you look for usr/cti/lib/swp/dir/ under that directory. Sorry not to have been clearer. – MadHatter Oct 16 '12 at 12:55
up vote 1 down vote accepted

Try to define an output directory with the -C option. The files will be extracted to the 'root' of the filesystem/harddrive by setting it to /

So to extract your archive you should try the following command:

tar xvfp fix.tar -C /

This way the files and will be extracted to /usr/cti/apps/swp/dir/

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.