Edit vi ~/.bashrc Comment out the line cp='cp -i' and save the configuration to take effect after restarting the server.
Check the alias after restarting. There is no cp='cp -i'. In this way, when overwriting files, use the -Rf parameter and you will not be asked constantly.
Found the solution - modify the command alias.
Edit vi ~/.bashrc
Comment out the line cp='cp -i' and save the configuration to take effect after restarting the server.
Check the alias after restarting. There is no cp='cp -i'. In this way, when overwriting files, use the -Rf parameter and you will not be asked constantly.
Add a backslash before the cp command, for example: