原因:
默认配置了
alias cp='cp -i'
1、修改 配置文件
vi ~/.bashrc
[root@localhost attendance]# cat ~/.bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
#alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
2、重新加载环境变量
source ~/.bashrc 3、reboot 重启