Link to home
Start Free TrialLog in
Avatar of ralph_rea
ralph_rea

asked on

URGENT - untar files

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?
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

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 .
Avatar of ralph_rea
ralph_rea

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial