<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fengcool.com</title>
	<atom:link href="http://www.fengcool.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fengcool.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>untar all files in a directory</title>
		<link>http://www.fengcool.com/2012/01/untar-all-files-in-a-directory/</link>
		<comments>http://www.fengcool.com/2012/01/untar-all-files-in-a-directory/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 19:09:40 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[untar]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=186</guid>
		<description><![CDATA[for i in *.tar.gz; do echo extracting $i; tar xvzf $i ;
]]></description>
			<content:encoded><![CDATA[<p>for i in *.tar.gz; do echo extracting $i; tar xvzf $i ;</p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2012%2F01%2Funtar-all-files-in-a-directory%2F&amp;linkname=untar%20all%20files%20in%20a%20directory"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2012/01/untar-all-files-in-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox Fedora 13 install guest additions</title>
		<link>http://www.fengcool.com/2010/10/virtualbox-fedora-13-install-guest-additions/</link>
		<comments>http://www.fengcool.com/2010/10/virtualbox-fedora-13-install-guest-additions/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:57:56 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=184</guid>
		<description><![CDATA[Install packages needed
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
in VirtualBox devices, select install guest additions
sh VBoxLinuxAdditions.run 
]]></description>
			<content:encoded><![CDATA[<p>Install packages needed</p>
<p>yum -y install kernel-devel kernel-headers dkms gcc gcc-c++<br />
in VirtualBox devices, select install guest additions<br />
sh VBoxLinuxAdditions.run </p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fvirtualbox-fedora-13-install-guest-additions%2F&amp;linkname=VirtualBox%20Fedora%2013%20install%20guest%20additions"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/virtualbox-fedora-13-install-guest-additions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VirtualBox Fedora 13 guest use shared folder</title>
		<link>http://www.fengcool.com/2010/10/virtualbox-fedora-12-guest-use-shared-folder/</link>
		<comments>http://www.fengcool.com/2010/10/virtualbox-fedora-12-guest-use-shared-folder/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:54:32 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=180</guid>
		<description><![CDATA[Fedora 13 as guest OS on a Windows 7 host

Add a shared folder in virtualbox&#8217;s devices settings.
create a folder &#8220;Shared&#8221; in fedora
su –c “mount.vboxsf Shared ~/Shared -o rw,exec,uid=1000,gid=1000,dev”
]]></description>
			<content:encoded><![CDATA[<p><strong>Fedora 13 as guest OS on a Windows 7 host<br />
</strong></p>
<p>Add a shared folder in virtualbox&#8217;s devices settings.<br />
create a folder &#8220;Shared&#8221; in fedora<br />
su –c “mount.vboxsf Shared ~/Shared -o rw,exec,uid=1000,gid=1000,dev”</p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fvirtualbox-fedora-12-guest-use-shared-folder%2F&amp;linkname=VirtualBox%20Fedora%2013%20guest%20use%20shared%20folder"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/virtualbox-fedora-12-guest-use-shared-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create multiple volumn zip backup with MD5 check</title>
		<link>http://www.fengcool.com/2010/10/create-multiple-volumn-zip-backup-with-md5-check/</link>
		<comments>http://www.fengcool.com/2010/10/create-multiple-volumn-zip-backup-with-md5-check/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:48:58 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=178</guid>
		<description><![CDATA[Download and install p7zip:
http://p7zip.sourceforge.net/
Then use 7z
Code:

7z a -v50m test.zip your-big-file-paths

this makes 50 MB volumes called
Code:
test.zip.001  test.zip.002  test.zip.003  test.zip.004
To extract them just run
Code:

7z x test.zip.001

make md5

# md5sum test.zip.* > MD5SUM
# cat MD5SUM
cb16175f4acad02f977f74d5c142879b  test.zip.001
33c745ca49ab6e63b727658ec148cf67  test.zip.002
14e6952b632fbb7f4c0731067afdb46c  test.zip.003
....

check md5

# md5sum --check MD5SUM

]]></description>
			<content:encoded><![CDATA[<p>Download and install p7zip:<br />
http://p7zip.sourceforge.net/</p>
<p>Then use 7z<br />
Code:<br />
<code><br />
7z a -v50m test.zip your-big-file-paths<br />
</code><br />
this makes 50 MB volumes called<br />
Code:</p>
<p>test.zip.001  test.zip.002  test.zip.003  test.zip.004</p>
<p>To extract them just run<br />
Code:</p>
<p><code><br />
7z x test.zip.001<br />
</code></p>
<p>make md5<br />
<code><br />
# md5sum test.zip.* > MD5SUM<br />
# cat MD5SUM<br />
cb16175f4acad02f977f74d5c142879b  test.zip.001<br />
33c745ca49ab6e63b727658ec148cf67  test.zip.002<br />
14e6952b632fbb7f4c0731067afdb46c  test.zip.003<br />
....<br />
</code><br />
check md5<br />
<code><br />
# md5sum --check MD5SUM<br />
</code></p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fcreate-multiple-volumn-zip-backup-with-md5-check%2F&amp;linkname=Create%20multiple%20volumn%20zip%20backup%20with%20MD5%20check"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/create-multiple-volumn-zip-backup-with-md5-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN make a sub folder to a seperate new repository</title>
		<link>http://www.fengcool.com/2010/10/svn-make-a-sub-folder-to-a-seperate-new-repository/</link>
		<comments>http://www.fengcool.com/2010/10/svn-make-a-sub-folder-to-a-seperate-new-repository/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 13:41:21 +0000</pubDate>
		<dc:creator>Nelson</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=176</guid>
		<description><![CDATA[
svnadmin dump /svn/old_repos > ./repository.dump
svndumpfilter include path/to/docs --drop-empty-revs --renumber-revs --preserve-revprops < ./repository.dump > ./docs_only.dump
svnadmin load /svn/new_repos < ./docs_only.dump

]]></description>
			<content:encoded><![CDATA[<p><code><br />
svnadmin dump /svn/old_repos > ./repository.dump<br />
svndumpfilter include path/to/docs --drop-empty-revs --renumber-revs --preserve-revprops < ./repository.dump > ./docs_only.dump<br />
svnadmin load /svn/new_repos < ./docs_only.dump<br />
</code></p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fsvn-make-a-sub-folder-to-a-seperate-new-repository%2F&amp;linkname=SVN%20make%20a%20sub%20folder%20to%20a%20seperate%20new%20repository"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/svn-make-a-sub-folder-to-a-seperate-new-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open and edit files from remote server</title>
		<link>http://www.fengcool.com/2010/10/open-and-edit-files-from-remote-server/</link>
		<comments>http://www.fengcool.com/2010/10/open-and-edit-files-from-remote-server/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 14:07:42 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=168</guid>
		<description><![CDATA[In my workplace, every developer needs to work on own directory in a shared dev server. 
Here is the command I ran to open my directory and edit my files remotely.

1
sshfs username@192.168.0.6:/remote/directory/path /mount/to/your/local/directory/path

* 192.168.0.6 is IP of remote server.
After you ran this, access to /mount/to/your/local/directory/path directory is same as access to remote directory.
Have fun.  [...]]]></description>
			<content:encoded><![CDATA[<p>In my workplace, every developer needs to work on own directory in a shared dev server. </p>
<p>Here is the command I ran to open my directory and edit my files remotely.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">sshfs username<span style="color: #000000; font-weight: bold;">@</span>192.168.0.6:<span style="color: #000000; font-weight: bold;">/</span>remote<span style="color: #000000; font-weight: bold;">/</span>directory<span style="color: #000000; font-weight: bold;">/</span>path <span style="color: #000000; font-weight: bold;">/</span>mount<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>directory<span style="color: #000000; font-weight: bold;">/</span>path</pre></td></tr></table></div>

<p>* 192.168.0.6 is IP of remote server.</p>
<p>After you ran this, access to /mount/to/your/local/directory/path directory is same as access to remote directory.</p>
<p>Have fun. <img src='http://www.fengcool.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fopen-and-edit-files-from-remote-server%2F&amp;linkname=Open%20and%20edit%20files%20from%20remote%20server"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/open-and-edit-files-from-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove svn directories and files</title>
		<link>http://www.fengcool.com/2010/10/remove-svn-directories-and-files/</link>
		<comments>http://www.fengcool.com/2010/10/remove-svn-directories-and-files/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 13:57:23 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=165</guid>
		<description><![CDATA[Deleting all SVN files and directories is a headache if your project contains lots of directories. 
Here is a easy way to delete them with one command.

1
find /path/to/your/directory -type d -name .svn -exec rm -rf '{}' +

]]></description>
			<content:encoded><![CDATA[<p>Deleting all SVN files and directories is a headache if your project contains lots of directories. </p>
<p>Here is a easy way to delete them with one command.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>your<span style="color: #000000; font-weight: bold;">/</span>directory <span style="color: #660033;">-type</span> d <span style="color: #660033;">-name</span> .svn <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #ff0000;">'{}'</span> +</pre></td></tr></table></div>

<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F10%2Fremove-svn-directories-and-files%2F&amp;linkname=Remove%20svn%20directories%20and%20files"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/10/remove-svn-directories-and-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP file_get_contents connection timeout</title>
		<link>http://www.fengcool.com/2010/04/php-file_get_contents-connection-timeout/</link>
		<comments>http://www.fengcool.com/2010/04/php-file_get_contents-connection-timeout/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 13:30:00 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=158</guid>
		<description><![CDATA[
1
2
3
4
5
6
7
8
9
&#160;
$context = stream_context_create&#40;array&#40;
    'http' =&#62; array&#40;
        'timeout' =&#62; 60   //timeout after 60 seconds
        &#41;
    &#41;
&#41;; 
&#160;
$file_content = file_get_contents&#40;$source_url,0,$ctx&#41;;

for more stream context options, please visit php.net
]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000088;">$context</span> <span style="color: #339933;">=</span> <span style="color: #990000;">stream_context_create</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'http'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'timeout'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">60</span>   <span style="color: #666666; font-style: italic;">//timeout after 60 seconds</span>
        <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #000088;">$file_content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$source_url</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #000088;">$ctx</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>for more stream context options, please visit <a href='http://ca.php.net/manual/en/function.stream-context-create.php'>php.net</a></p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F04%2Fphp-file_get_contents-connection-timeout%2F&amp;linkname=PHP%20file_get_contents%20connection%20timeout"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/04/php-file_get_contents-connection-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP is holiday class</title>
		<link>http://www.fengcool.com/2010/01/php-is-holiday-class/</link>
		<comments>http://www.fengcool.com/2010/01/php-is-holiday-class/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:37:01 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[holiday]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=153</guid>
		<description><![CDATA[Test out is it a holiday for any given date. This class currently support United States and Canada's holidays.]]></description>
			<content:encoded><![CDATA[<p>Test out is it a holiday for any given date.</p>
<p>This class currently support United States and Canada&#8217;s holidays.</p>
<p>Here is<br />
<a href="http://en.wikipedia.org/wiki/Public_holidays_in_the_United_States">United States holidays</a> information.<br />
<a href='http://en.wikipedia.org/wiki/Canadian_holidays'>Canadian Holidays</a> information.</p>
<p>This PHP class supports different provinces have its own provincial holidays. For example, December 26th is statutory holiday for Ontario and New Brunswick in Canada.</p>
<p>Usage:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;IsHoliday.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Holiday<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'US'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_holiday</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2010-07-04'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;yes, 2010-07-04 is holiday in US &lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span>	
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;no &lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//Using Canadian province code for specific province</span>
<span style="color: #000088;">$h</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Holiday<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Canada'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'ON'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$h</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">is_holiday</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2010-12-26'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;yes, 2010-12-26 is holiday in Canada &lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span>	
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;no &lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><a href='/demo/isHoliday/php-isHoliday.rar'>Download source code here</a></p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2010%2F01%2Fphp-is-holiday-class%2F&amp;linkname=PHP%20is%20holiday%20class"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2010/01/php-is-holiday-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cp file always getting overwrite prompt?</title>
		<link>http://www.fengcool.com/2009/11/cp-file-always-getting-overwrite-prompt/</link>
		<comments>http://www.fengcool.com/2009/11/cp-file-always-getting-overwrite-prompt/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 05:32:09 +0000</pubDate>
		<dc:creator>rick</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cp]]></category>
		<category><![CDATA[prompt]]></category>

		<guid isPermaLink="false">http://www.fengcool.com/?p=133</guid>
		<description><![CDATA[linux cp cannot remove overwrite prompt. force no prompt when copy a file.]]></description>
			<content:encoded><![CDATA[<p>wondering why always getting overwrite prompt when use &#8220;cp&#8221; command with &#8220;-f&#8221; option</p>
<p>try this,</p>
<p>1. login as root</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.bashrc</pre></td></tr></table></div>

<p>2. comment out this line</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#alias cp='cp -i'</span></pre></td></tr></table></div>

<p>3. logout and login again</p>
<a rel="external nofollow" class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.fengcool.com%2F2009%2F11%2Fcp-file-always-getting-overwrite-prompt%2F&amp;linkname=cp%20file%20always%20getting%20overwrite%20prompt%3F"><img src="http://www.fengcool.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.fengcool.com/2009/11/cp-file-always-getting-overwrite-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

