<?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>John Bernard Abella [blog] &#187; rm command</title>
	<atom:link href="http://www.johnbernardabella.com/tag/rm-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnbernardabella.com</link>
	<description>A System Admin's Notebook, A Progrmmers Journal</description>
	<lastBuildDate>Wed, 16 Jun 2010 13:27:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Alternative for rm command</title>
		<link>http://www.johnbernardabella.com/alternative-for-rm-command/</link>
		<comments>http://www.johnbernardabella.com/alternative-for-rm-command/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 16:07:17 +0000</pubDate>
		<dc:creator>jba_21</dc:creator>
				<category><![CDATA[Linux Help]]></category>
		<category><![CDATA[linux command]]></category>
		<category><![CDATA[linux rm]]></category>
		<category><![CDATA[remove files]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[rm command]]></category>

		<guid isPermaLink="false">http://www.johnbernardabella.com/2008/02/03/alternative-for-rm-command/</guid>
		<description><![CDATA[Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.
Now i was puzzled by rm command.
rm -f *
in /tmp/ directory. The terminal choked and gave out:
-bash: /bin/rm: Argument [...]]]></description>
			<content:encoded><![CDATA[<p>Ive been handling  webserver with more than 1000 website and lots of unique visitors per month. Session are stored on the server hard drive and every end of the month i need to clean it up.</p>
<p>Now i was puzzled by rm command.<br />
<code>rm -f *</code></p>
<p>in /tmp/ directory. The terminal choked and gave out:</p>
<p><code>-bash: /bin/rm: Argument list too long</code></p>
<p>Apparently there are a maximum number of files that can be passed to rm.</p>
<p><code>ls -1 | grep sess | wc -l</code></p>
<p><code>382611</code></p>
<p></p>
<p>wow 382611 session files! image how long it would take if you have an application that running with sessions.<br />
The solution for this problem would be :</p>
<p><code>find . -name 'sess*' | xargs rm </code></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-center sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;t=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Alternative+for+rm+command+-+http://b2l.me/b3s3h+(via+@jbabella)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command&amp;summary=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash&amp;source=John Bernard Abella [blog]" rel="nofollow" class="external" title="Share this on Linkedin">Share this on Linkedin</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;n=Alternative+for+rm+command&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-technorati">
			<a href="http://technorati.com/faves?add=http://www.johnbernardabella.com/alternative-for-rm-command/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://www.johnbernardabella.com/alternative-for-rm-command/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-diigo">
			<a href="http://www.diigo.com/post?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command&amp;desc=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-yahoobuzz">
			<a href="http://buzz.yahoo.com/submit/?submitUrl=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;submitHeadline=Alternative+for+rm+command&amp;submitSummary=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash&amp;submitCategory=science&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;title=Alternative+for+rm+command" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-myspace">
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.johnbernardabella.com/alternative-for-rm-command/&amp;t=Alternative+for+rm+command" rel="nofollow" class="external" title="Post this to MySpace">Post this to MySpace</a>
		</li>
		<li class="sexy-hyves">
			<a href="http://www.hyves.nl/profilemanage/add/tips/?name=Alternative+for+rm+command&amp;text=Ive%20been%20handling%20%20webserver%20with%20more%20than%201000%20website%20and%20lots%20of%20unique%20visitors%20per%20month.%20Session%20are%20stored%20on%20the%20server%20hard%20drive%20and%20every%20end%20of%20the%20month%20i%20need%20to%20clean%20it%20up.%0D%0A%0D%0ANow%20i%20was%20puzzled%20by%20rm%20command.%0D%0Arm%20-f%20%2A%0D%0A%0D%0Ain%20%2Ftmp%2F%20directory.%20The%20terminal%20choked%20and%20gave%20out%3A%0D%0A%0D%0A-bash+-+http://www.johnbernardabella.com/alternative-for-rm-command/&amp;rating=5" rel="nofollow" class="external" title="Share this on Hyves">Share this on Hyves</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.johnbernardabella.com/alternative-for-rm-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
