注释掉alias cp=‘cp -i‘
[[email protected] ~]# vi ~/.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
~
重启系统,加上-f就能强制性复制了
cp -f /mnt/* /root/test/.
时间: 2024-10-25 16:29:00