1
I am trying to extract a untar a file to a different directory on a AIX 5.3 box
tar -xvf -C /tmp/ ./MyFile.tar
tar: -C: No such file or directory
tar -C /tmp -xvf ./MyFile.tar
Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvw[0-9] ]
tar -xvf ./MyFile.tar -C /tmp/
tar: file -C: not present in archive
tar: file /tmp/: not present in archive
Note:
Installing GNU tar is not an option
I would prefer not to CD to the target dir first
I have seen this answer on SU
Thanks