I need to copy all /etc directory and subdirectory to another /etc (source and destenation name is same)
So all need to be replace (all destenation files and folders must replace with source files and directorys)
i know "cp -r /root/etc /etc" is ok for above details.
but its need to type "y" caracter for each file replacement.
How can run this command for automatic replacement?
I think cp is normally aliased with cp -i as that required the yes option. You can un alias it and then try to cp -f option you can confirm it by using the command "type cp" in shell. Then unalias cp and try to use cp -f