Option --force for cp

Bill Davidsen davidsen at tmr.com
Wed Jun 11 22:18:10 UTC 2008


Luc MAIGNAN wrote:
> Hi,
> 
> I definitively can't force cp to override existing files without asking 
> confirmation.
> 
> According to documentation , I try :
> 
> cp -r --force src/file1 ./
> 
> but always a confirmation is asked...
> 
> 
> What's wrong ?
> 
Someone assumes you're a moron, cp has been turned into an alias forcing 
you to verify everything. If you only want to be an adult once in a 
while, just type "/bin/cp opts and args" to get the real cp.

My systems call my local init script, which among other things:\
   alias|sed 's/alias //;s/=.*//'|while read cmd;do unalias $cmd; done

I admit I do define a few of my own, but they don't redefine standard 
commands, they are keystroke savers for the common ls option sets I like.

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot




More information about the fedora-list mailing list