-
unalias cp
修改.bashrc中的alias也行 -
\cp
[root@VM-99-33-centos opt]# \cp 1/test 2/test
[root@VM-99-33-centos opt]# cat 2/test
test1
- 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
网友评论