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
anishtvAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
Try changing that .  to  *
Kent WSr. Network / Systems AdminCommented:
When in doubt, pump in the full path. I'd stick the recursive flag on that, too. (-r)
anishtvAuthor Commented:
Kindly update the final format.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Gerwin Jansen, EE MVETopic Advisor Commented:
>> Kindly update the final format.
Did you try my suggestion at all? Just type * instead of .
cp -a /dbhome_1/* /dbhome_2/

Open in new window

Do you want to copy folders as well as files below /dbhome_1 - kindly specify what you want.
Kent WSr. Network / Systems AdminCommented:
cp -ra /path/to/source/* /path/to/target/

That will copy everything.
anishtvAuthor Commented:
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/dbhome_1

need to be copied to dbhome_2
Gerwin Jansen, EE MVETopic Advisor Commented:
cp -ra /u01/app/oracle/product/12.1.0.2/dbhome_1/* /u01/app/oracle/product/12.1.0.2/dbhome_2/

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anishtvAuthor Commented:
what is -ra means
Kent WSr. Network / Systems AdminCommented:
r = recursive, a = archive mode
Gerwin Jansen, EE MVETopic Advisor Commented:
If you don't know what commands do, try:

man <command>
anishtvAuthor Commented:
worked
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.