[CentOS] question on "cp -f" on centos 5.1
Garrick Staples
garrick at usc.edu
Mon Jan 28 18:50:06 UTC 2008
On Mon, Jan 28, 2008 at 01:45:15PM -0500, Jerry Geis alleged:
> 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?
Using csh/tcsh?
You are running into an alias. Simply escape cp or call with full path:
\cp -f
/bin/cp -f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20080128/446d1417/attachment.sig>
More information about the CentOS
mailing list