美文网首页
cp 覆盖不提示

cp 覆盖不提示

作者: 偷油考拉 | 来源:发表于2021-10-08 16:00 被阅读0次
  1. unalias cp
    修改.bashrc中的alias也行

  2. \cp

[root@VM-99-33-centos opt]# \cp 1/test 2/test 
[root@VM-99-33-centos opt]# cat 2/test 
test1
  1. yes | cp -rf xxx yyy
    写脚本推荐
[root@VM-99-33-centos opt]# yes | cp 1/test 2/test 
cp: overwrite ‘2/test’? [root@VM-99-33-centos opt]# 
[root@VM-99-33-centos opt]# 
[root@VM-99-33-centos opt]# cat 2/test 
test1

相关文章

网友评论

      本文标题:cp 覆盖不提示

      本文链接:https://www.haomeiwen.com/subject/ggexoltx.html