19
2
How can I stop the cp command from prompting to overwrite. I want to overwrite all the files with out having to keep going back to the terminal. As these are large files and take some time to complete.
I tried using the -f option. It still ask if I want to overwrite.
-f, --force
if an existing destination file cannot be opened, remove it and
try again (redundant if the -n option is used)
cp -f /media/somedir/somefiles* .
cp: overwrite `./somefilesxxx'? y
1A
whereis cp
will show where is the command. So you'll be able to call the real command instead of the alias. – AnthonyB – 2018-11-12T11:13:29.963