<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Supress cp &#8220;Do you want to overwrite&#8221; prompt in Fedora</title>
	<atom:link href="http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/</link>
	<description>linux, blog, anime, spirituality, windsurf, wireless</description>
	<lastBuildDate>Fri, 10 May 2013 10:41:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Jeff Schroeder</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11094</link>
		<dc:creator>Jeff Schroeder</dc:creator>
		<pubDate>Mon, 07 Feb 2011 14:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11094</guid>
		<description><![CDATA[There is a much better way and I&#039;m surprised no one has said it yet.

The easiest way to reference the actual cp binary and skip over aliases is to use \. This is much easier than calling the full path to the binary (/bin/cp) and accomplishes the same job. It also lets you keep the alias so just in case you do something stupid you&#039;ll have a chance to save yourself.

For example:
root@jschroeder2:~# touch file1 file2
root@jschroeder2:~# cp file1 file2
cp: overwrite `file2&#039;? n
root@jschroeder2:~# \cp file1 file2
root@jschroeder2:~# 

Perhaps I should write up a blog post on this and other common mistakes.]]></description>
		<content:encoded><![CDATA[<p>There is a much better way and I&#8217;m surprised no one has said it yet.</p>
<p>The easiest way to reference the actual cp binary and skip over aliases is to use \. This is much easier than calling the full path to the binary (/bin/cp) and accomplishes the same job. It also lets you keep the alias so just in case you do something stupid you&#8217;ll have a chance to save yourself.</p>
<p>For example:<br />
root@jschroeder2:~# touch file1 file2<br />
root@jschroeder2:~# cp file1 file2<br />
cp: overwrite `file2&#8242;? n<br />
root@jschroeder2:~# \cp file1 file2<br />
root@jschroeder2:~# </p>
<p>Perhaps I should write up a blog post on this and other common mistakes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Robinson</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11092</link>
		<dc:creator>Peter Robinson</dc:creator>
		<pubDate>Sun, 06 Feb 2011 14:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11092</guid>
		<description><![CDATA[As someone mentioned above for cp you can prepend a \ to all commands to get the base command and not aliases. Its a very quick way to get around either local or system aliases.]]></description>
		<content:encoded><![CDATA[<p>As someone mentioned above for cp you can prepend a \ to all commands to get the base command and not aliases. Its a very quick way to get around either local or system aliases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11090</link>
		<dc:creator>Rene</dc:creator>
		<pubDate>Sun, 06 Feb 2011 12:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11090</guid>
		<description><![CDATA[You can do it using quotes like: &quot;rm&quot; file
or &#039;rm&#039; file
I don&#039;t know a manpage where this is explained. It was just one of those tricks you find on some random webpage.]]></description>
		<content:encoded><![CDATA[<p>You can do it using quotes like: &#8220;rm&#8221; file<br />
or &#8216;rm&#8217; file<br />
I don&#8217;t know a manpage where this is explained. It was just one of those tricks you find on some random webpage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Randall Owens</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11088</link>
		<dc:creator>J. Randall Owens</dc:creator>
		<pubDate>Sun, 06 Feb 2011 07:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11088</guid>
		<description><![CDATA[Much like &quot;No alias&quot;&#039;s suggestion, I usually use /bin/cp to suppress the alias on a one-time basis.]]></description>
		<content:encoded><![CDATA[<p>Much like &#8220;No alias&#8221;&#8216;s suggestion, I usually use /bin/cp to suppress the alias on a one-time basis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clifford</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11087</link>
		<dc:creator>Clifford</dc:creator>
		<pubDate>Sun, 06 Feb 2011 03:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11087</guid>
		<description><![CDATA[I have not tried this with cp, but I use the full path when removing files, for example /bin/rm.  I would think /bin/cp would work the same.  I can not test since I don&#039;t have an alias for cp.]]></description>
		<content:encoded><![CDATA[<p>I have not tried this with cp, but I use the full path when removing files, for example /bin/rm.  I would think /bin/cp would work the same.  I can not test since I don&#8217;t have an alias for cp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Frields</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11084</link>
		<dc:creator>Paul Frields</dc:creator>
		<pubDate>Sun, 06 Feb 2011 00:04:21 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11084</guid>
		<description><![CDATA[&quot;Regular users&quot; would be using a GUI shell with its own protection settings. There&#039;s no need for the current behavior to change.]]></description>
		<content:encoded><![CDATA[<p>&#8220;Regular users&#8221; would be using a GUI shell with its own protection settings. There&#8217;s no need for the current behavior to change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valent</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11083</link>
		<dc:creator>valent</dc:creator>
		<pubDate>Sat, 05 Feb 2011 23:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11083</guid>
		<description><![CDATA[Nope, I tried using cp -f and it looks like -i options disabled -f option. Just try it and you will see for your self.]]></description>
		<content:encoded><![CDATA[<p>Nope, I tried using cp -f and it looks like -i options disabled -f option. Just try it and you will see for your self.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: No alias</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11082</link>
		<dc:creator>No alias</dc:creator>
		<pubDate>Sat, 05 Feb 2011 22:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11082</guid>
		<description><![CDATA[Or for a onetime alias suspension use  \cp instead of cp]]></description>
		<content:encoded><![CDATA[<p>Or for a onetime alias suspension use  \cp instead of cp</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dmaphy</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11081</link>
		<dc:creator>dmaphy</dc:creator>
		<pubDate>Sat, 05 Feb 2011 21:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11081</guid>
		<description><![CDATA[If you call the commands with -f, they don&#039;t care of the -i. In my opinion there is no need for un-setting those aliases.]]></description>
		<content:encoded><![CDATA[<p>If you call the commands with -f, they don&#8217;t care of the -i. In my opinion there is no need for un-setting those aliases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention /kernel_reloaded/ -- Topsy.com</title>
		<link>http://kernelreloaded.blog385.com/index.php/archives/supress-cp-do-you-want-to-overwrite-prompt-in-fedora/comment-page-1/#comment-11080</link>
		<dc:creator>Tweets that mention /kernel_reloaded/ -- Topsy.com</dc:creator>
		<pubDate>Sat, 05 Feb 2011 20:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://kernelreloaded.blog385.com/?p=1526#comment-11080</guid>
		<description><![CDATA[[...] This post was mentioned on Twitter by Zuissi, Planet Fedora. Planet Fedora said: Valent Turkovic: Supress cp “Do you want to overwrite” prompt in Fedora:   When you try to copy one file over ex... http://bit.ly/fNiWOB [...]]]></description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Zuissi, Planet Fedora. Planet Fedora said: Valent Turkovic: Supress cp “Do you want to overwrite” prompt in Fedora:   When you try to copy one file over ex&#8230; <a href="http://bit.ly/fNiWOB" rel="nofollow">http://bit.ly/fNiWOB</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
