|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Hi,
I am using SunOs 5.8. I have a .tar file(created using tar -cvf command) say user1.tar which is a backup of a /home/user1 directory. /home/user1 directory have some files (e.g .profile, x.sh etc.) and some sub-directories under this. This tar files are kept under /tmp/bkup/ directory. Now when i wants to extract the file (using tar -xvf command) files are extracted under its initial directory i.e "/home/user1/", but i want to extract all those files under /tmp/bkup/ directory i.e after extraction the "/tmp/bkup/" file system will looks like /tmp/bkup/home/user1/.......... Can anybody help me regarding this matter? Thanks a lot. |
|
#2
|
|||
|
|||
|
man chroot
|
|
#3
|
|||
|
|||
|
a) forgive the - in tar cmds, it's useless
b) NEVER ,NEVER ,NEVER ,NEVER ,NEVER do an absolute tar c) follow vgersh99 d) it's not for beginners (+= you need root perms)
__________________
working on Solaris[5-9], preferred languages french and C. |
|
#4
|
|||
|
|||
|
I think for using chroot, root permission is required, that i did not have.
Is there any way to extract the contains of .tar file in another user defined directory. Quote:
|
|
#5
|
|||
|
|||
|
well..... according to absolute tar your other choice might be pax.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Want to Extract .tar file under a different/user specified directory. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|