Originally Posted by craig_panama
It keeps asking me permission to copy... how do I get it to turn off the interactive?
edit(1) I posted this about an hr ago and I see about 13 views.. no replies
What I'm doing with "cp" is trying to upgrade a directory with sub-directories and files. To me this seems a fairly common operation.
So it seems "cp" is not designed with this in mind.
It could be your shell has an alias for "cp" so that it sees the "cp" command
as "cp -i" (or some longer alias mixture of options that includes i for interactive)
note that even if you use options typed right onto the command, the
previously aliased options get inherited on,
this would setup that alias
and would cause the shell to interpret this:
cp -Rf [source] [destination]
cp -iRf [source][destination]
How to resolve:
1) get rid of the alias just in that shell instance:
2) permanently, find the config file that does the alias cp 'cp -i'
and remove that line from the file
3) one-shot ignore the alias with \ as an escape:
\cp -Rf [source][destination]
The fast way to see if this alias exists is just query for that