How do I force CP to overwrite without confirmation?

How do I force CP to overwrite without confirmation?
Answer
The best way to force the overwrite is to use a backward slash before the cp command as shown in the following example. Here, we are copying contents of the bin directory to test directory. Alternatively, you can unalias the cp alias for the current session, then run your cp command in the non-interactive mode.
 

Tìm kiếm

Back
Top