<?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>Leon&#039;s blog &#187; copy</title>
	<atom:link href="http://www.leonzhang.com/tag/copy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leonzhang.com</link>
	<description>关注: 开源&#38;互联网, GTD with open source and Web</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:24:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux下如何拷贝整个目录下的所有文件</title>
		<link>http://www.leonzhang.com/2010/02/03/how_to_copy_folder_in_linux/</link>
		<comments>http://www.leonzhang.com/2010/02/03/how_to_copy_folder_in_linux/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:52:50 +0000</pubDate>
		<dc:creator>leon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://www.leonzhang.com/?p=454</guid>
		<description><![CDATA[如何在Linux下拷贝一个目录呢？这好像是再如意不过的问题了。 比如要把/home/usera拷贝到/mnt/temp，我首先想到的就是 cp -R /home/usera/* /mnt/temp 但是这样有一个问题，/home/usera下的隐藏文件都不会被拷贝，子目录下的隐藏文件倒是会的。 那如何才是正确的方法呢？有人说用-a选项，有人说用find加管道。 其实没这么复杂，Google了之后，学了一招。原来只有用“.”当前目录代替“*”就好了。 cp -R /home/usera/. /mnt/temp]]></description>
			<content:encoded><![CDATA[<p>如何在Linux下拷贝一个目录呢？这好像是再如意不过的问题了。<br />
比如要把/home/usera拷贝到/mnt/temp，我首先想到的就是<br />
<code><br />
cp -R /home/usera/* /mnt/temp<br />
</code><br />
但是这样有一个问题，/home/usera下的隐藏文件都不会被拷贝，子目录下的隐藏文件倒是会的。</p>
<p>那如何才是正确的方法呢？有人说用-a选项，有人说用find加管道。<br />
其实没这么复杂，Google了之后，学了一招。原来只有用“.”当前目录代替“*”就好了。<br />
<code><br />
cp -R /home/usera/. /mnt/temp<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.leonzhang.com/2010/02/03/how_to_copy_folder_in_linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching 1/21 queries in 0.010 seconds using disk: basic
Object Caching 301/343 objects using disk: basic
Content Delivery Network via N/A

Served from: www.leonzhang.com @ 2012-02-10 17:16:41 -->
