- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Exracting file from tar format
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 06:36 PM
10-17-2003 06:36 PM
Exracting file from tar format
I have one y2k.tar file,which i restored from tape on my local server,ie HP-UX 10.20 plat form.Now how to un-tar this tar format file.so that i can exract files.
Please advice me on this.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 06:42 PM
10-17-2003 06:42 PM
Re: Exracting file from tar format
Use the following command to untar the y2k.tar file.
tar -xvf y2k.tar
Hope this helps.
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 07:16 PM
10-17-2003 07:16 PM
Re: Exracting file from tar format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 07:31 PM
10-17-2003 07:31 PM
Re: Exracting file from tar format
With the command suggested by Hemanth, you should have your extracted files into the same directory where "y2k.tar" file resides.
The command extracts the files and returns the prompt, no options.
Please, don't forget to assing points to Hemanth.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 07:50 PM
10-17-2003 07:50 PM
Re: Exracting file from tar format
as per Hemanth advice i tryed the same but no files are exracted in same directory.i found only y2k.tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 07:56 PM
10-17-2003 07:56 PM
Re: Exracting file from tar format
OK, try this:
- Create a new directory called "y2k".
- Then copy the file "y2k.tar" to that new directory. Then "cd" to the new directory and finally extract the files/folders with the command "tar xvf y2k.tar".
You should see "new" files or folders.
Let me know.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 07:58 PM
10-17-2003 07:58 PM
Re: Exracting file from tar format
Try this one:
tar -xvf /tmp/yourfile.tar
If you see some output on your monitor is good.
Your files must me in the /tmp directory
Good luck
Idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 08:03 PM
10-17-2003 08:03 PM
Re: Exracting file from tar format
Are you sure its a tar format file ?
Try :-
file y2k.tar
If the response is tar file then you should follow Hermanth's original suggestion and as pointed out by Zigor the files will reside in the directory where you ran the tar command (probably where the y2k.tar file is located).
I would also like to echo Zigor's remarks regarding point assignments.
Its not compulsory but a good way of rewarding forum members who take their time to offer their expertise and knowledge to other forum members and colleagues.
I notice you have assigned 0 points to you 18 questions so far !
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 08:04 PM
10-17-2003 08:04 PM
Re: Exracting file from tar format
Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 08:12 PM
10-17-2003 08:12 PM
Re: Exracting file from tar format
I did the same as you adviced.But still no files are exracting from tar file.
Thanks and Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 08:37 PM
10-17-2003 08:37 PM
Re: Exracting file from tar format
it is simple :
tar -cvf /tmp/filename.tar to make one tar file
You can check your file with
file filename.tar
You should get answer it is an tar file
Then you typ:
tar -xvf /tmp/filename.tar to extract your tar file
try with an onther file
succes
Idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 08:38 PM
10-17-2003 08:38 PM
Re: Exracting file from tar format
to make one tar file do:
tar -cvf /tmp/filename.tar *
Success
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 10:41 PM
10-17-2003 10:41 PM
Re: Exracting file from tar format
I would recommend to follow the instructions given by the others, check with "file y2k.tar" if this is a tar file. Besides, be sure that you have restored the file from tape correctly ( same file size ).
Please post the output of "file y2k.tar" and "ll -a /your_dir".
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2003 11:03 PM
10-17-2003 11:03 PM
Re: Exracting file from tar format
After going through the replies from Zigor, Delic and other peers, I would recommend that you do the following as suggested by them as well:
file y2k.tar
Check if it is a tar file or if it is a compressed file.
If it is a compressed file, use the foll. steps:
mv y2k.tar y2k.tar.Z
uncompress y2k.tar.Z
tar -xvf y2k.tar
Hope this helps.
For more info, refer to tar manpage.
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2003 04:20 AM
10-18-2003 04:20 AM
Re: Exracting file from tar format
maybe you don't have permission to use tar command of you are in the directory where you can not extract your file's.
Can you check it ?
Idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2003 06:17 AM
10-18-2003 06:17 AM
Re: Exracting file from tar format
# tar -tvf y2k.tar
That should show you a listing of files contained in y2k.tar file.
The location the files will be extracted to depends ENTIRELY on how the tar file was created. If the files were archived with explicit path names (like /y2k/file/whatever) then they will be restored to the same directory they came from. If they were archived with relative path names (like ./y2k/file or y2k/file) then they will be restored into the directory you are currently in.
The first think you need to check though, is whether or not this is a valid tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2003 07:49 AM
10-18-2003 07:49 AM
Re: Exracting file from tar format
Check the type of file with:
file y2k.tar
You will see what type the file is,
tar or not.
Could be that the file also compressed
with gzip.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2003 06:14 PM
10-19-2003 06:14 PM
Re: Exracting file from tar format
First of all i Apologies to everybody,if i hurt you all.
Finally i could able to sucessfully extract tar file.First i restored the tar file in / directory and i Used tar -xvf y2k.tar command.With this i got the o/p.
Once again i am very much thankfull to you for giving me your valuble suggestions and sparing your time.
Thanks and regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 04:35 AM
10-20-2003 04:35 AM
Re: Exracting file from tar format
I'm glad you dit it but some points is ok too.
succes
Idriz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 05:09 AM
10-20-2003 05:09 AM
Re: Exracting file from tar format
tar -xvf /device(OR PATH) filename
but tar command is very useful also for others uses.
See attachment.
HTH
Bruno