<?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: How to find empty folders on Linux</title>
	<atom:link href="http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 06:25:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: kepi</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-29293</link>
		<dc:creator>kepi</dc:creator>
		<pubDate>Tue, 31 May 2011 09:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-29293</guid>
		<description>Even simpler and safer is

# find /path -type d -empty -delete</description>
		<content:encoded><![CDATA[<p>Even simpler and safer is</p>
<p># find /path -type d -empty -delete</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonio</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-27613</link>
		<dc:creator>Antonio</dc:creator>
		<pubDate>Mon, 18 Jan 2010 16:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-27613</guid>
		<description>&gt; # find /path -type d -empty -exec rm -rf {} \;

If we do this, we would have to search again for empty folders (those that just got empty by deleting empty folders inside).

Better try:

# find /path -depth -type d -empty -exec rm -r {} \;

&quot;-depth&quot; means &quot;act on contents before the dir (work from the bottom up)&quot;.</description>
		<content:encoded><![CDATA[<p>&gt; # find /path -type d -empty -exec rm -rf {} \;</p>
<p>If we do this, we would have to search again for empty folders (those that just got empty by deleting empty folders inside).</p>
<p>Better try:</p>
<p># find /path -depth -type d -empty -exec rm -r {} \;</p>
<p>&#8220;-depth&#8221; means &#8220;act on contents before the dir (work from the bottom up)&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: felipe1982</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-27401</link>
		<dc:creator>felipe1982</dc:creator>
		<pubDate>Tue, 03 Nov 2009 08:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-27401</guid>
		<description>You should probably run
[code]
find -type d -empty -exec rmdir &#039;{}&#039; \;
[/code]
rmdir will only remove an empty directory, this adds some assurance (sanity) to the removal process. &#039;{}&#039; will ensure strange directory names are &#039;quoted&#039; and protected from your shell</description>
		<content:encoded><![CDATA[<p>You should probably run<br />
[code]<br />
find -type d -empty -exec rmdir '{}' \;<br />
[/code]<br />
rmdir will only remove an empty directory, this adds some assurance (sanity) to the removal process. &#8216;{}&#8217; will ensure strange directory names are &#8216;quoted&#8217; and protected from your shell</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Upendraya</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-26626</link>
		<dc:creator>Upendraya</dc:creator>
		<pubDate>Mon, 16 Mar 2009 03:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-26626</guid>
		<description>I have posted a complete how-to for the linux newbs at &lt;a href=&quot;http://www.linuxbuzz.net&quot; rel=&quot;nofollow&quot;&gt;LinuxBuzz.net&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I have posted a complete how-to for the linux newbs at <a href="http://www.linuxbuzz.net" rel="nofollow">LinuxBuzz.net</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maverick Prowls</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-26572</link>
		<dc:creator>Maverick Prowls</dc:creator>
		<pubDate>Sat, 28 Feb 2009 19:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-26572</guid>
		<description>Thanks for this, just what I was looking for</description>
		<content:encoded><![CDATA[<p>Thanks for this, just what I was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waike</title>
		<link>http://www.planetmy.com/blog/how-to-find-empty-folders-on-linux/comment-page-1/#comment-19616</link>
		<dc:creator>waike</dc:creator>
		<pubDate>Thu, 23 Oct 2008 07:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.planetmy.com/blog/?p=603#comment-19616</guid>
		<description>you can easily found tons of similar tutorial.</description>
		<content:encoded><![CDATA[<p>you can easily found tons of similar tutorial.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.780 seconds -->

