<?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>系统运维 &#187; llinux cp</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/llinux-cp/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>linux下cp目录时排除一个或者多个目录的方法</title>
		<link>https://www.osyunwei.com/archives/2626.html</link>
		<comments>https://www.osyunwei.com/archives/2626.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 09:41:55 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[llinux cp]]></category>
		<category><![CDATA[llinux 排除目录]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=2626</guid>
		<description><![CDATA[说明：/home目录里面有data目录，data目录里面有a、b、c、d、e五个目录，现在要把data目录里面除过e目录之外的所有目录拷贝到/bak目录中 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容版权所有,转载请注明出处及原文链接 方法一：终端命令行下执行以下命令 cp -R `find /home/data -type d  -path /home/data/e  -prune -o -print &#124; sed 1d ` /bak ######################################################## 脚本实现 脚本存放路径/home/osyunwei.sh vi /home/osyunwei.sh   #编辑脚本，添加下面的代码 #!/bin/sh cp -R `find /home/data -type d  -path /home/data/e  -prune -o -print &#124; sed 1d ` /bak chmod +x  /home/osyunwei.sh   #添加脚本执行权限 cd  /home  #进入脚本存放目录 ./osyunwei.sh   #执行脚本 ######################################################## 系统运维 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/2626.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/2626.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
