superstarjpmc
Programmer
i created a tar file using the below command.
tar cvf my.tar /tmp/*
This contains all the file/directories etc from /tmp directory.
My requirement is..
I want to un-tar the my.tar under a different directory... say /opt/mywork/
when I untar my.tar from /opt/mywork it untar's using the absolute path.. and doesnt create a directory /tmp under /opt/mywork..
can anyone help on this.
regs
tar cvf my.tar /tmp/*
This contains all the file/directories etc from /tmp directory.
My requirement is..
I want to un-tar the my.tar under a different directory... say /opt/mywork/
when I untar my.tar from /opt/mywork it untar's using the absolute path.. and doesnt create a directory /tmp under /opt/mywork..
can anyone help on this.
regs