How to force cp to overwrite without confirmation
Asked 07 September, 2021
Viewed 1.7K times
  • 55
Votes

I'm trying to use the cp command and force an overwrite.

I have tried cp -rf /foo/* /bar, but I am still prompted to confirm each overwrite.

16 Answer