<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Or, you can keep the cp -i and, when you want to skip the prompt by typing a backslash (&quot;\&quot;) before the command. Just like this:<BR>
<BR>
\cp &lt;filename&gt; &lt;destiny&gt;<BR>
<BR>
This works with mv and rm, too.<BR>
<BR>
On Mon, 2003-12-08 at 14:21, Christophe Le Guern wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#0500ff"><I>On Mon, 8 Dec 2003 11:05:47 -0500
&quot;Genti A. Hila&quot; &lt;genti_tek4@hotmail.com&gt; wrote:

&gt; Hi list,
&gt; 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
&gt; 
&gt; cp /var/named/named.run /var/named/named.save
&gt; 
&gt; 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.
&gt; 
&gt; 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@redhat.com
To unsubscribe: </FONT><A HREF="http://www.redhat.com/mailman/listinfo/fedora-list"><U>http://www.redhat.com/mailman/listinfo/fedora-list</U></I></A></PRE>
</BLOCKQUOTE>
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>

<HR NOSHADE SIZE="1">
<BR>
<FONT SIZE="3"><B>Marco Aur&#233;lio Torino Ribeiro</B></FONT><BR>
<A HREF="mailto:marco.torino@ig.com.br"><U>marco.torino@ig.com.br</A><BR>
<A HREF="mailto:marco.torino@directnet.com.br">marco.torino@directnet.com.br</U></A><BR>
<BR>
<I>&quot;The price of freedom is responsibility, but it's a bargain, because freedom is priceless.&quot;<BR>
Hugh Downs</I><BR>

<HR NOSHADE SIZE="1">

</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>