Option --force for cp
Aaron Konstam
akonstam at sbcglobal.net
Wed Jun 11 13:15:06 UTC 2008
On Tue, 2008-06-10 at 16:36 -0500, Bruno Wolff III wrote:
> On Tue, Jun 10, 2008 at 16:24:52 +0200,
> Luc MAIGNAN <luc.maignan at winxpert.com> wrote:
> > Hi,
> >
> > I definitively can't force cp to override existing files without asking
> > confirmation.
> >
> > According to documentation , I try :
> >
> > cp -r --force src/file1 ./
> >
> > but always a confirmation is asked...
> >
> >
> > What's wrong ?
>
> cp is probably aliased to 'cp -i'. Try using:
> 'cp' -rf src/file1 ./
>
Actually executing:
/cp -r --force src/file1 ./
will remove the alias from the execution. Notice the leading '\'
character.
--
=======================================================================
It's a recession when your neighbour loses his job; it's a depression
when you lose yours. -- Harry S. Truman
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net
More information about the users
mailing list