Zach K. answered 10/18/21
Tutor
3.8
(5)
Senior Linux Systems Administrator
This is probably caused by cp being already aliased to something like cp -i. Calling cp directly should work:
/bin/cp -rf /foo/* /bar
Another way to get around this is to use the yes command:
yes | cp -rf /foo/* /bar
To verify that cp isn't aliased use the command, which:
which cp