Hi all,
I have a linux server and regularly need to copy the contents of a cache folder into my master website folder. The problem is the destination folder contains exactly the same file names as the source folder and whatever copy command I try I am always left with an overwrite prompt message per item, but because there are over 1000 files I do not want to see an over write prompt, I just want a forced overwrite.
I have tried these two commands but I cannot avoid the overwrite prompt with these:
cp -rf /root/home/folder1/cache /root/home/folder2/cache
or
cp -rf /root/home/folder1/cache/* /root/home/folder2/cache
Does anyone know a way to avoid the overwrite prompt please?
Thanks in advance!
Bootus