How to untar a file to a different destination directory HP-UX
Let’s suppose you have a tar file and all the contents have absolute paths beginning with “/home/oracle” and you want to untar to “/u01”. The command “pax” can accomplish task for you.
#pax -v -r -s ‘,//*home//*,,’ -f file.tar
The above command will substitute /home with blanks and remove the absolute path portion. After running pax, you should have a new directory oracle under /u01.