LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to suppress "Do you want to overwrite" prompt while using cp command (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-suppress-do-you-want-to-overwrite-prompt-while-using-cp-command-791925/)

gsvsmanyam 02-27-2010 04:42 AM

How to suppress "Do you want to overwrite" prompt while using cp command
 
Hi,

How to suppress "Do you want to overwrite" prompt while using cp command. I tried "cp -fr", but it isn't worked.

Anybody help please.

Thank you.

devnull10 02-27-2010 05:20 AM

perhaps you have an alias set up by default? try typing "alias cp" in the shell and see what gets returned.

syg00 02-27-2010 05:40 AM

"\cp ..." will over-ride any alias if present.

MTK358 02-27-2010 06:45 AM

cp isn't supposed to ask by default.

Your distro might have set up an alias that turns "cp" into "cp -i" to be safer.

estabroo 02-28-2010 02:07 PM

your cp is probably aliased to cp -i

try /bin/cp instead of just cp


All times are GMT -5. The time now is 01:32 AM.