Re: question on "cp -f" on centos 5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxx  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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux