[CentOS] question on "cp -f" on centos 5.1

Mon Jan 28 19:10:22 UTC 2008
Bill Campbell <centos at celestial.com>

On Mon, Jan 28, 2008, Jerry Geis wrote:
>When I issue the command cp -af --reply=yes * ../other
>it tells me --reply is deprecated and use -i or -f.
>
>when I remove the --reply=yes I have to indicate 'y' to every
>file being copied.
>
>I just want to copy every file in my current directory to another
>directory and overwrite any file that is there.
>
>What is the correct way to do that?

``unalias cp'' then do your real work.

You will then only be prompted when attempting to remove files
without write permission.

If you feel like a responsible adult, you might want to comment
out the other aliases in your .profile or other startup files
which appear as:

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Mechanical Engineers build weapons.  Civil Engineers build targets.