执行cp命令,其实是默认执行了cp -i命令的别名,因此总提示是否覆盖。
修改~/.bashrc,注释“alias cp='cp -i'”即可。
[root@xxxx test]# vi ~/.bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' #alias cp='cp -i' alias mv='mv -i'
Copyright @ 2024 Initial-X Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster