cp command

Mike Klinke lsomike at futzin.com
Tue Jul 18 15:30:44 UTC 2006


On Tuesday 18 July 2006 07:49, JV wrote:
> an even easier 2 approaches.
>   cp -f  will override the -i and do the copy without prompting
> for confirmation

Doesn't seem to work here ....

10:25:31 # touch fileA
10:25:57 # touch fileB
10:26:03 # which cp
alias cp='cp -i'
        /bin/cp
10:26:15 # cp fileA fileB
cp: overwrite `fileB'? n
10:26:29 # cp -f fileA fileB
cp: overwrite `fileB'? n

>   \cp  will use the default cp command and NOT use the alias 

Thanks for the tip!


Regards, Mike Klinke




More information about the users mailing list