?
Solved

URGENT - untar files

Posted on 2012-09-13
3
Medium Priority
?
648 Views
Last Modified: 2012-09-13
Hi,
In HP-UX O.S. I have directory 817_file with n files

I created this tar:
tar -cvf /opt/ora817/ora817_product_817_817_file.tar 817_file

Now I need untar these file into /opt/ora817/product/817

If I run:
cd /opt/ora817/product/817

tar -xvf /opt/ora817/ora817_product_817_817_file.tar

I get /opt/ora817/product/817/817_file directory but I need only the files into /opt/ora817/product/817


Have you anydea which steps I perform?
0
Comment
Question by:ralph_rea
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38394270
cd to 817_file befor creating the archive.

Use a dot as a source specifier then:


cd 817_file
tar -cvf /opt/ora817/ora817_product_817_817_file.tar .
0
 

Author Comment

by:ralph_rea
ID: 38394343
I haven't more the 817_file directory but only the tar ora817_product_817_817_file.tar

How Can I untar or copy or move these file into /opt/ora817/product/817?
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 38394363
cd /opt/ora817/product/817
mv 817_file/* .
rmdir 817_file
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question