cp拷贝文件不提示而直接覆盖的方法

因为redhat给cp建了一个alias,当你执行cp时,其实执行的是cp -i (alias cp='cp -i')
方法1
vi ~/.bashrc
在alias cp='cp -i'前加上"#"注释掉这行

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
#alias cp='cp -i'
alias mv='mv -i'


重新登陆后生效

或者 方法2

alias cp=cp  
Linux系统 | 评论(0) | 引用(0) | 阅读(222)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]