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

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



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?

As others have mentioned, I usually just do 'unalias cp' first.
But you can also do  yes | cp (cp options) which will say y to
every prompt cp spits out.

nate

_______________________________________________
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