I want to copy folders from one folder to another.
In the "cp" man page, I read this
......... -r option is strongly discouraged, as it
does not correctly copy special files, symbolic links, or fifo's.
The -v and -n options are non-standard and their use in scripts is not recommended.
I could not find a way to get a warning before over-writing folders like in the case of copying files where "-i" can be used and then "y" or "n" can be specified.
This is because according to the man page "
In -R mode, cp will continue copying even if errors are detected.
" which means that "-R" over-writes the "-i" option.