<?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>Apache, Linux ,Seo tricks and many more &#187; delete</title>
	<atom:link href="http://www.gossiplime.com/tag/delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gossiplime.com</link>
	<description>This blog is just for all persons to know more about php, apache , linux , seo etc</description>
	<lastBuildDate>Wed, 24 Jun 2009 15:50:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Remove / Delete  a Directory Linux Command</title>
		<link>http://www.gossiplime.com/2009/06/remove-delete-a-directory-linux-command/</link>
		<comments>http://www.gossiplime.com/2009/06/remove-delete-a-directory-linux-command/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:50:02 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[delete]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=326</guid>
		<description><![CDATA[Delete / Remove a Directory Linux Command Q. I am new to Linux and command line. How do I delete or remove a directory? A. Use rmdir command. This command remove the DIRECTORY(ies), if they are empty. For example, type the following command to remove /tmp/docs directory: $ rmdir /tmp/docs If directory is not empty [...]]]></description>
			<content:encoded><![CDATA[<div>
<h1>Delete / Remove a Directory Linux Command</h1>
</div>
<div style="float: right; margin-top: 0px; margin-left: 5px;"><a title="See all GNU/Linux related FAQ" href="http://www.cyberciti.biz/faq/category/linux/"><br />
</a></div>
<p><span style="color: #ff0000;">Q</span>. I am new to Linux and command line. How do I delete or remove a directory?</p>
<p><span style="color: #009900;">A</span>. Use rmdir command. This command remove the DIRECTORY(ies), if they are empty. For example, type the following command to remove /tmp/docs directory:</p>
<p><strong>$ rmdir /tmp/docs</strong><br />
If directory is not empty you will get an error:<br />
<code>$ rmdir letters</code><br />
Output:</p>
<pre>rmdir: letters: Directory not empty</pre>
<p>You can change directory to find out files:<br />
<code>$ cd letters<br />
$ ls</code></p>
<h2>Linux remove entire directory</h2>
<p>To remove all directories and subdirectories use rm command. For example remove letters and all subdirectories and files inside this directory, type the following command:<br />
<code>$ rm -rf letters/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/06/remove-delete-a-directory-linux-command/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>How do I remove all empty directories?</title>
		<link>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/</link>
		<comments>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:40:53 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=322</guid>
		<description><![CDATA[You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too. For [...]]]></description>
			<content:encoded><![CDATA[<p>You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too.</p>
<p>For example if you want to remove all empty directories from /tmp directory, type the command:</p>
<blockquote><p>$ cd /tmp<br />
$ cleanlinks</p></blockquote>
<p>Please note that cleanlinks command is part of XFree86 project. Another method is to use combination of shell commands in script:</p>
<blockquote><p>#/bin/bash<br />
DIR=&#8221;$1&#8243;<br />
[ -d $DIR ] &amp;&amp; [ $(ls -l $DIR | wc -l) -eq 1  ] &amp;&amp; rmdir $DIR ||  :</p></blockquote>
<p>Save and execute a script:</p>
<blockquote><p>$ script.sh dir1</p></blockquote>
<p>You can also try out tmpreaper command which recursively searches for and removes files and empty directories which haven&#8217;t been accessed for a given number of seconds. Normally, it&#8217;s used to clean up directories which are used for temporary holding space, such as &#8220;/tmp&#8221;. Syntax is as follows:<br />
<strong>tmpreaper TIME-FORMAT DIRS</strong></p>
<p>Where,</p>
<ul>
<li>TIME-FORMAT : Defines the age threshold for removing files. The TIME-FORMAT should be a number, defaulting to hours, optionally suffixed by one character: d for days, h for hours, m for minutes, or s for seconds.</li>
<li>DIRS : Directory name for example /tmp</li>
</ul>
<p>For example, remove all files accessed 24h before:</p>
<p># tmpreaper 24h /tmp</p>
<p>Please note that tmpreaper command is not installed by default you may need to install it using apt-get or rpm command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
