1833771 Members
2213 Online
110063 Solutions
New Discussion

untar

 
SOLVED
Go to solution
sam kim_1
Frequent Advisor

untar

1) i just xferred a file using ftp from nt to hpux 11.x machine
2) then, i confirmed that the file
'vhpx407e.tar.z' is existing under root directory
3) then, i tried to untar (or unzip?) using several commands such as
4)#zcat vhpx407e.tar.z | tar -xf -
#zcat vhpx407e.tar.z | tar xf-
#zcat vhpx407e.tar.z | tar -xf
5)but the result is 'no such file or directory..'
--------------------
i have no clue and
'# man zcat' does not give me much ideas either !!
7 REPLIES 7
Stefan Farrelly
Honored Contributor

Re: untar


If the file has come from an NT box its unlikely to be in HP's compress format, try using gunzip or gzcat instead.
Im from Palmerston North, New Zealand, but somehow ended up in London...
John Palmer
Honored Contributor

Re: untar

zcat expects the file to have a .Z subscript that is a capital Z.
Antoanetta Naghiu
Esteemed Contributor
Solution

Re: untar

mv vhpx407e.tar.z vhpx407e.tar.Z
uncompress vhpx407e.tar.Z
tar xvf vhpx407e.tar
Rick Garland
Honored Contributor

Re: untar

The 'z' at the end of the file is most likely capitalized. This is a compressed file. To uncompress, use the 'uncompress' command. Remember to be aware of the pathing issues when using the tar command. You may want to start out by using the 'tar -tvf '. This will provide a table of contents to the tarball without doing and writing the tarball to disk. Again, be careful with the pathing issue in the tar command.
sam kim_1
Frequent Advisor

Re: untar

i tried:
1) # gunzip vhpx407e.tar.z | tar -xf (or xf, xf-, -xf -)
2) # gzcat vhpx407e.tar.z | tar -xf - (or xf, xf-, -xf -)
3)result: nothing is working so far!!
John Palmer
Honored Contributor

Re: untar

How did you create the file on NT and did you ftp it in binary mode?
sam kim_1
Frequent Advisor

Re: untar

thanks all and have a good day!!