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

Mon Jan 28 19:03:03 UTC 2008
Les Mikesell <lesmikesell at gmail.com>

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?

I assume you're doing this as root... The system-defined shell aliases 
are your enemy.  Try typing /bin/cp instead of just cp to bypass the 
nanny-OS insisting that you need interactive mode instead of defaulting 
to doing what you said.  (Type "which cp" to see what is happening).

--
   Les Mikesell
    lesmikesell at gmail.com