When I want to view the following tar file , then tar show the following three files
from /var/tmp
tar tvf fix.tar
install.sh
/usr/cti/apps/swp/dir/script1.sh
/usr/cti/lib/swp/dir/script2.sh
. .
but when I want to open the files to their directories
then I get error about /usr/cti/lib/swp/dir/script2.sh ,
please advice why tar cant open the script2.sh under /usr/cti/lib/swp/dir ?
from /var/tmp
tar xvfp fix.tar
install.sh
/usr/cti/apps/swp/dir/script1.sh
tar: Removing leading `/' from member names
/usr/cti/lib/swp/dir/script2.sh
./usr/cti/lib/swp/dir/script2.sh(note leading dot)? – MadHatter Oct 16 '12 at 12:50.refers to the current working directory. I'm suggesting that, whatever directory you're in when you run thetar xvfpcommand, you look forusr/cti/lib/swp/dir/script2.shunder that directory. Sorry not to have been clearer. – MadHatter Oct 16 '12 at 12:55