How can you UnTar files to a different directory?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can you UnTar files to a different directory?
# 1  
Old 11-20-2006
How can you UnTar files to a different directory?

Suppose you have a TAR file created with a different directory structure and you need to UnTar (or explode) the files to a different directory structure. How can this be done?

If TAR command cannot do this, are there any other alternatives (any other command) available to UnTar a .Tar file?

Thanks a lot in advance ...

-- Vaibhav
# 2  
Old 11-20-2006
Please use the search feature that is provided before asking common questions. check this out
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Untar to a particular directory is Failing

Below are my system and tar details. bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-40 sun4v sparc sun4v bash-3.2$ which tar /usr/bin/tar I use this command to untar at the file at this location: /web/applications/configurations tar -xvf bent.tar -C... (18 Replies)
Discussion started by: mohtashims
18 Replies

2. UNIX for Dummies Questions & Answers

How to Untar tar.gz to particular directory

Hi Guys, I am able to untar a tar.gz file. But it is again extracting the tar file to further child directory. I even tried the below command to untar it to particular directory. tar -zxvf gme_dly_sls_20120515035335.txt.tar.gz -C /sites/VSTAR/site/live/ftp/GMEUROPE I am getting the below... (4 Replies)
Discussion started by: mac4rfree
4 Replies

3. Shell Programming and Scripting

Help on untar files in one command

Hi All, I need your help to find out an easy way to untar files from a tar file. For example, I have a tar file which contains a lot of files that needs to untar in certain directories. I would like to untar them using one command instead of typing the following commands which is taking lots... (6 Replies)
Discussion started by: mohullah
6 Replies

4. UNIX for Advanced & Expert Users

tar and untar the files using single line

Hi, i want tar the files from one location and untar it to other location using single line. Can any one help me zip and unzip using single line command. (2 Replies)
Discussion started by: venikathir
2 Replies

5. Shell Programming and Scripting

Untar specific directory and strip leading directories

Ok so I know the title was probably confusing so here goes: I have a tarball (gzipped) that has a nested directory structure . For example: my.tar.gz (contents) --- ------ --------- ------------ --------------- ... (2 Replies)
Discussion started by: DC Slick
2 Replies

6. Shell Programming and Scripting

Untar files from different locations

Hi all, My tar file exists in directory: /usr/users/rovolis/test1/archive.tar Now from directory: /usr/users/rovolis/ i run the following command tar xvzf /usr/users/rovolis/test1/archive.tar The problem is that the extraction of files is not done Any idea why? Thank you (1 Reply)
Discussion started by: chriss_58
1 Replies

7. Shell Programming and Scripting

Shell script required to uncompress and untar files

I need a shell script to Uncompress untar all the files present in the directory (it should Uncompress an untar files present in its sub folders also) In my work I get lots of tar files to untar and update the server, for this each time in need to type Step1) “ Uncompress xyz1-3.tar.z”... (2 Replies)
Discussion started by: arewe
2 Replies

8. Programming

Not able to use NFS mounted directory as buffer for untar & unzip.

Hi, For a new requirement, we are trying to use NFS mounted directory as the buffer (TMP_DIR) for untar. Target OS- VxWorks Host OS - Windows Embedded. mounted a directory in wondows onto VxWorks. During untar process of GNU we come across utime, for chaning the time stamp of the... (0 Replies)
Discussion started by: suraj.bc
0 Replies

9. UNIX for Dummies Questions & Answers

how to untar *.dpk files

Hi All, I am unable to untar *.dpkg.md5 using tar command. Could nay one help me out. Thanks & Regards Gauri (3 Replies)
Discussion started by: gauri
3 Replies

10. Shell Programming and Scripting

Writing a shell script to untar files

I am new to shell scripting and would appreciate any help I can get. I need to write a Unix shell script that I will run whenever I have a tar file to uncompress(Korn shell). Please put in mind that I have different environements that I will run it on. Thanks in advance ;) (4 Replies)
Discussion started by: nkem22
4 Replies
Login or Register to Ask a Question