AIX - How to force cp to overwrite without confirmation

This is probably caused by cp being already aliased to something like cp -i. Calling cp directly should work:

/bin/cp -rf /zzz/zzz/* /xxx/xxx

Another way to get around this is to use the yes command:

yes | cp -rf /zzz/zzz/* /xxx/xxx
posted @ 2020-05-18 16:56  kakaisgood  阅读(206)  评论(0编辑  收藏  举报