-f, --force if an e使xisting destination file cannot be opened, remove it and try again
也就是说-f可以覆盖目的目录下有的文件
默认cp命令是有别名(alias cp='cp -i')的,无法强制覆盖,即使你用 -f 参数也无法强制覆盖文件。
可以使用\cp 执行cp命令时不走alias
\cp * -rf ../../test /a
临时取消cp的alias
#unalias cp
#cp a /test
Comment