<?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 and Delete Empty Directories in Linux	</title>
	<atom:link href="https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/</link>
	<description>UbuntuMint - Everything About Ubuntu Linux</description>
	<lastBuildDate>Mon, 24 Jul 2023 08:20:33 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Santiago Arraga		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-8574</link>

		<dc:creator><![CDATA[Santiago Arraga]]></dc:creator>
		<pubDate>Mon, 21 Mar 2022 11:37:01 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-8574</guid>

					<description><![CDATA[It&#039;s more efficient to end the &lt;strong&gt;exec&lt;/strong&gt; command with &lt;code&gt;&#039;+&#039;&lt;/code&gt; instead of &lt;code&gt;&#039;;&#039;&lt;/code&gt;, as only one &lt;strong&gt;rm&lt;/strong&gt; will be executed with the list of dirs as argument, instead of individual rms per dir.

Also, you can use &lt;strong&gt;xargs&lt;/strong&gt; like this:
&lt;pre&gt;
# find . -type d -empty -print0 &#124; xargs -0 rmdir
&lt;/pre&gt;
Note the use of &lt;code&gt;-print0&lt;/code&gt; and &lt;code&gt;-0&lt;/code&gt;, to manage directories with whitespace in them.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s more efficient to end the <strong>exec</strong> command with <code>'+'</code> instead of <code>';'</code>, as only one <strong>rm</strong> will be executed with the list of dirs as argument, instead of individual rms per dir.</p>
<p>Also, you can use <strong>xargs</strong> like this:</p>
<pre>
# find . -type d -empty -print0 | xargs -0 rmdir
</pre>
<p>Note the use of <code>-print0</code> and <code>-0</code>, to manage directories with whitespace in them.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Camikazi		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-3356</link>

		<dc:creator><![CDATA[Camikazi]]></dc:creator>
		<pubDate>Sun, 31 Oct 2021 21:23:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-3356</guid>

					<description><![CDATA[Thank you very much, this was exactly what I needed to clean out my music library.]]></description>
			<content:encoded><![CDATA[<p>Thank you very much, this was exactly what I needed to clean out my music library.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-997</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Thu, 19 Aug 2021 04:28:51 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-997</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-987&quot;&gt;Roland&lt;/a&gt;.

@Roland,

Thanks for pointing out, corrected the command in the article...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-987">Roland</a>.</p>
<p>@Roland,</p>
<p>Thanks for pointing out, corrected the command in the article&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Roland		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-987</link>

		<dc:creator><![CDATA[Roland]]></dc:creator>
		<pubDate>Wed, 18 Aug 2021 12:00:43 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-987</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-898&quot;&gt;TaZeR&lt;/a&gt;.

The final command (with &lt;code&gt;-delete&lt;/code&gt;) should not contain the &lt;code&gt;-exec&lt;/code&gt; option.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-898">TaZeR</a>.</p>
<p>The final command (with <code>-delete</code>) should not contain the <code>-exec</code> option.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-899</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 06:04:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-899</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-898&quot;&gt;TaZeR&lt;/a&gt;.

@TaZeR,

A &lt;code&gt;-exec&lt;/code&gt; command must be end with a &lt;code&gt;;&lt;/code&gt; (so you generally need to type &lt;code&gt;\;&lt;/code&gt; or &lt;code&gt;&#039;;&#039;&lt;/code&gt; to avoid interpretion by the Linux shell).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-898">TaZeR</a>.</p>
<p>@TaZeR,</p>
<p>A <code>-exec</code> command must be end with a <code>;</code> (so you generally need to type <code>\;</code> or <code>';'</code> to avoid interpretion by the Linux shell).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: TaZeR		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-898</link>

		<dc:creator><![CDATA[TaZeR]]></dc:creator>
		<pubDate>Tue, 03 Aug 2021 05:42:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-898</guid>

					<description><![CDATA[Doesn&#039;t work &quot;find: missing argument to `-exec&#039;&quot;]]></description>
			<content:encoded><![CDATA[<p>Doesn&#8217;t work &#8220;find: missing argument to `-exec'&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Carmine		</title>
		<link>https://www.ubuntumint.com/find-and-delete-empty-directories-in-linux/#comment-855</link>

		<dc:creator><![CDATA[Carmine]]></dc:creator>
		<pubDate>Thu, 29 Jul 2021 11:14:23 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=707#comment-855</guid>

					<description><![CDATA[Very helpful article. Thank you.]]></description>
			<content:encoded><![CDATA[<p>Very helpful article. Thank you.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
