tar command ? URGENT


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tar command ? URGENT
# 1  
Old 04-13-2004
Data tar command ? URGENT

Hello Unix-Admins,

first time I´ve an urgent question. I´m no Unix-Admin so please be friendly with my explanation of the problem.

In frim we have used a tar command to get an esxport. No we need from this export only one or two special files. How is the syntax for restoring these files.

Thank you for your answers.

Greetings
salzig
# 2  
Old 04-13-2004
tar xvf something.tar file1 file2

But when you specify file1 and file2 you must use the exact full name as it appears on tar archive. To find that, first use:
tar tvf something.tar
to list the contents of your tar archive. Look for the files that you want to extract. Use the full path as you see it in the listing.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX command to check if file name ends with .tar OR if the file is a tar file

Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies

2. Shell Programming and Scripting

Single command - unzip files from a tar command

I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command? What I'm doing now is tar xvf a.tar (this will output 1.Z and 2.Z) gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
9 Replies

3. Shell Programming and Scripting

URGENT HELP: problem with mv command

I was trying to move a file to a particular directory. In a hurry i forgot to give the dest directory, as below mv prod.log The file disappeared. :confused: Any idea where it might have moved??? And I have tried moving files based on date from one directory to another as below.... (1 Reply)
Discussion started by: siteregsam
1 Replies

4. UNIX for Dummies Questions & Answers

Unix Command Urgent Help!

Hi All, i am new on this forum, can someone please answer the following questions as i am also new for UNIX, you help would be much appreciated: 1. How do you delete the full directory hierarchy? 2. How do you find out all process run by user Kamran ? 3. how would you extract something... (1 Reply)
Discussion started by: kami151
1 Replies

5. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

6. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

7. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

8. UNIX for Advanced & Expert Users

very urgent---mailx command

plsssssss help me i m getting maid. i fired below commands while do sso=501688351 echo "Hi ," >> file_send; mailx -c manoj.dahiya1@ge.com -s " mail checking" $sso@mail.ad.ge.com < file_send cas=num done now i am getting mails every seconds... plsssss help me , how... (2 Replies)
Discussion started by: manoj_dahiya22
2 Replies

9. Shell Programming and Scripting

Urgent-- mailx command

i want to send mail in bold eg. mailx -s " subject" manoj@yahoo.com << EOF This is Body of mail EOF i want "This is Body of mail " in bold.... what is the solution? Thanx in advance (1 Reply)
Discussion started by: manoj_dahiya22
1 Replies

10. UNIX for Dummies Questions & Answers

wc command help.... and other unix command....... urgent

hi all. thanks for looking i am doing some homework. one question is that when type wc and then how to tell the program that we have finished entering data? also why do some operating systems report 22 as the number of bytes in the file above, while others only 20? thanks so much,... (1 Reply)
Discussion started by: dashi2k
1 Replies
Login or Register to Ask a Question