close
Normally cp would have an alias of the follwing:
which cp
alias cp='cp -i'
/bin/cp
-i , which is interactive (prompt before overwrite)
To avoid this behavior, the alias must not be used.
Overwrite an existing file without prompt by issuing:
/bin/cp -f /test/123 /test/123.bak
全站熱搜