overwriting a file
Marco Aurelio Torino Ribeiro
marco.torino at directnet.com.br
Mon Dec 8 16:27:53 UTC 2003
Or, you can keep the cp -i and, when you want to skip the prompt by
typing a backslash ("\") before the command. Just like this:
\cp <filename> <destiny>
This works with mv and rm, too.
On Mon, 2003-12-08 at 14:21, Christophe Le Guern wrote:
> On Mon, 8 Dec 2003 11:05:47 -0500
> "Genti A. Hila" <genti_tek4 at hotmail.com> wrote:
>
> > Hi list,
> > When i copy a file to another location and that file exist there already there is a promts that asks for overwriting. How can i skip the prompt
> >
> > cp /var/named/named.run /var/named/named.save
> >
> > I tried man cp and tried option -f ( cp -f ......) which works fine when I remove a file but still it asks me when i try to overwrite.
> >
> > How can i force it to be non interactive ? I didn't see any option that allows me to do so.
>
> Look at ~/.bashrc, there is some alias like cp='cp -i', just comment it out.
>
> Christophe
>
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
________________________________________________________________________
Marco Aurélio Torino Ribeiro
marco.torino at ig.com.br
marco.torino at directnet.com.br
"The price of freedom is responsibility, but it's a bargain, because
freedom is priceless."
Hugh Downs
________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20031208/fe476f53/attachment-0001.htm>
More information about the fedora-list
mailing list