Ubuntu: cp copy overwrite without prompting
when you run: cp -rf /source/* /destination , it always ask you to confirm the overwrite action.
Root cause: it’s probably the cp has been alias as cp -i
Fix:
1 |
/bin/cp -rf /source/* /destination |
or
1 |
yes | cp -rf /source/* /destination |
Leave a Reply