Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

About the "tar"

Rambo_1
Regular Advisor

About the "tar"

Hi,
There is a tar file :"ABC.tar@hp" , when I used the command #tar xv ABC.tar@hp , it doesnot work . which option should I use to tar this ABC.tar@hp ?

Thanks
6 REPLIES
Muthukumar_5
Honored Contributor

Re: About the "tar"

Hai,

Is it a tar file. Check that with file command.
And you have to use xvf options to extract the files from archive.

No problem will come because of tar@hp extensions. UNIX will not care about extensions.

use man tar to know the usage.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Mobeen_1
Esteemed Contributor

Re: About the "tar"

Rambo,
The correct command to extract files from an archive is as shown below

tar -xvf

The tar file name above could be anything.

Let us know if you have any problems doing it or if you have any questions

regards
Mobeen
Muthukumar_5
Honored Contributor

Re: About the "tar"

Hai,

You can also pax command to Extract files from archive. Use the command as,

# pax -dvi ABC.tar@hp

It will do the same operation of tar -xvf.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: About the "tar"

Hai,

It's
# pax -dvf ABC.tar@hp

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!
Ravi_8
Honored Contributor

Re: About the "tar"

Hi

# file

shows what type of file it is
#tar xvf
extract the file
never give up
Sanjay Kumar Suri
Honored Contributor

Re: About the "tar"

tar does work as the following trial proves

$tar -cvf back.tar ABC.tar@hp file2
a ABC.tar@hp 1 blocks
a file2 1 blocks

$tar -xvf back.tar ABC.tar@hp
x ABC.tar@hp, 12 bytes, 1 tape blocks

However following does not work (on account of missing -f)

$ tar -xv back.tar ABC.tar@hp

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.