forcing overwrite with cp in FC5

Pete Geenhuizen pgeenhuizen at pobox.homeunix.net
Tue Sep 19 11:29:23 UTC 2006



On Tue, September 19, 2006 07:15, Benjamin Franz wrote:
> On Tue,
19 Sep 2006, Michael W Cocke wrote:
> 
>> I know this
must have been covered before, but I can't find it...
>>
>> How can I get cp to overwrite existing destination files
without being
>> prompted for every file?  --force doesn't do
it, --remove-destination
>> doesn't do it (although from
reading the man page I would expect
>> either one to to work)
and --reply=yes complains that it's being
>> depreciated.
>>
>> If the answer is "'you can't", can I
get a pointer to the source for
>> cp?
> 
>
Although you didn't say so, you must be trying it as 'root'. When
running
> as root, RH aliases 'cp' to 'cp -i'. So type 'unalias
cp' to unalias it.
> 
> You can get the full list of
aliased commands by typing 'alias'.
> 
> --
>
Benjamin Franz

When in doubt and far simpler is to preface the
command with \
i.e \cp file1 file2

-- 
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060919/bd059c30/attachment-0001.htm>


More information about the fedora-list mailing list