By default, cp and mv commands in Linux cannot be forcibly overwritten during replication. even if you use the-f parameter, files cannot be forcibly overwritten because they have aliases in the system.
By default, cp and mv commands in Linux cannot be forcibly overwritten during replication, even if you use the-f parameter, the file cannot be forcibly overwritten, because they have aliases in the system (alias cp = 'CP-I '), and this-I parameter is if the destination region (destination) already exists, when overwriting, the system will first ask if the action is true!
The following describes how to overwrite the cp command in Linux.
1) cancel the cp alias (rest assured that this is not permanently effective ):
# Unalias cp
# Cp a/test/
2) add the backslash \ cp to execute the cp command without leaving alias:
# \ Cp a/test/
3) echo yes:
# Yes | cp a/test/
4) we can use absolute paths.
#/Bin/cp a/test/