About
Pricing
Community
Teams
Start Free Trial
Log in
anishtv
asked on
1/20/2016
copyfiles
cannot copy
I was trying to copy.
dbhome_1]$ cp -a /dbhome_1/. /dbhome_2/
cp: cannot stat `/dbhome_1/.': No such file or directory
contents are in dbhome_1
Unix OS
Linux
11
1
Last Comment
anishtv
8/22/2022 - Mon
Gerwin Jansen
1/20/2016
Try changing that . to *
Kent W
1/20/2016
When in doubt, pump in the full path. I'd stick the recursive flag on that, too. (-r)
anishtv
1/20/2016
ASKER
Kindly update the final format.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Gerwin Jansen
1/20/2016
>> Kindly update the final format.
Did you try my suggestion at all? Just type * instead of .
cp -a /dbhome_1/* /dbhome_2/
Select all
Open in new window
Do you want to copy folders as well as files below /dbhome_1 - kindly specify what you want.
Kent W
1/20/2016
cp -ra /path/to/source/* /path/to/target/
That will copy everything.
anishtv
1/20/2016
ASKER
dbhome_1 and dbhome_2 are folders in
/u01/app/oracle/product/12
.1.0.2/
There are lot of files in
/u01/app/oracle/product/12
.1.0.2/dbh
ome_1
need to be copied to dbhome_2
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Gerwin Jansen
1/20/2016
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
anishtv
1/20/2016
ASKER
what is -ra means
Kent W
1/20/2016
r = recursive, a = archive mode
Gerwin Jansen
1/21/2016
If you don't know what commands do, try:
man <command>
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
anishtv
1/27/2016
ASKER
worked