<?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: What happens if you run &#8220;sudo rm -rf /&#8221; in Linux</title>
	<atom:link href="http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/</link>
	<description>Oh damn, I need a better tagline than this.</description>
	<lastBuildDate>Wed, 11 Nov 2009 18:06:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Das</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-154117</link>
		<dc:creator>Das</dc:creator>
		<pubDate>Tue, 27 Oct 2009 06:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-154117</guid>
		<description>I&#039;ve always wanted to see what that what look like, now that you bit the bullet for me, i wont have to. Cheers.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always wanted to see what that what look like, now that you bit the bullet for me, i wont have to. Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr. Dew</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-153888</link>
		<dc:creator>Mr. Dew</dc:creator>
		<pubDate>Mon, 03 Aug 2009 19:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-153888</guid>
		<description>That&#039;s an interesting comment Michael. I haven&#039;t heard of shred. I wanted to shred my files before handing my unstable hard disk over to Seagate as I couldn&#039;t trust they wouldn&#039;t steal my data.</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting comment Michael. I haven&#8217;t heard of shred. I wanted to shred my files before handing my unstable hard disk over to Seagate as I couldn&#8217;t trust they wouldn&#8217;t steal my data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-153883</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 02 Aug 2009 08:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-153883</guid>
		<description>Even better, 

  sudo find / -type f -execdir shred -u -1000 &#039;{}&#039; \;

This finds and shreds (overwrites with meaningless crap) every file in root 1,000 times, then removes it.  This guarantees that there is absolutely no way to recover the lost files. Default shredding is just 25 times, so 1,000 might be a bit overkill, but hey, when you are deleting everything, you might as well.

This leaves directories alone, though, so to clean those up, you can execute

  sudo rm -rf /

afterwards, if it still works.</description>
		<content:encoded><![CDATA[<p>Even better, </p>
<p>  sudo find / -type f -execdir shred -u -1000 &#8216;{}&#8217; \;</p>
<p>This finds and shreds (overwrites with meaningless crap) every file in root 1,000 times, then removes it.  This guarantees that there is absolutely no way to recover the lost files. Default shredding is just 25 times, so 1,000 might be a bit overkill, but hey, when you are deleting everything, you might as well.</p>
<p>This leaves directories alone, though, so to clean those up, you can execute</p>
<p>  sudo rm -rf /</p>
<p>afterwards, if it still works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-153882</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sun, 02 Aug 2009 08:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-153882</guid>
		<description>This shouldn&#039;t just delete the OS, but everything in root. You literally lose your entire HDD. Although apparently there is a lot even rm -f can&#039;t delete.

The reason it exists, Jim, is because both sudo and rm, with their commands, are essential to running Linux, and this is just one particular application which is incredibly stupid. You might even use &quot;sudo rm -rf&quot; from time to time, but you would only use it on directories you actually want to remove, rather than / (root), which just DELETES FUCKING EVERYTHING. Sudo is a program with many useful applications (it gives you the privelages of root or any other user, provided you have that password), and rm is essential (it removes files and directories). the -r option allows recursively removing files and directories (it will empty a directory, then delete it), which is necessary for deleting non-empty directories. The -f option removes write-protected files, which you can do with root access. Unfortunately, it can&#039;t delete write-protected directories, and apparently some directories are somehow protected even from root. I wonder if a clever application of chmod could fix this.</description>
		<content:encoded><![CDATA[<p>This shouldn&#8217;t just delete the OS, but everything in root. You literally lose your entire HDD. Although apparently there is a lot even rm -f can&#8217;t delete.</p>
<p>The reason it exists, Jim, is because both sudo and rm, with their commands, are essential to running Linux, and this is just one particular application which is incredibly stupid. You might even use &#8220;sudo rm -rf&#8221; from time to time, but you would only use it on directories you actually want to remove, rather than / (root), which just DELETES FUCKING EVERYTHING. Sudo is a program with many useful applications (it gives you the privelages of root or any other user, provided you have that password), and rm is essential (it removes files and directories). the -r option allows recursively removing files and directories (it will empty a directory, then delete it), which is necessary for deleting non-empty directories. The -f option removes write-protected files, which you can do with root access. Unfortunately, it can&#8217;t delete write-protected directories, and apparently some directories are somehow protected even from root. I wonder if a clever application of chmod could fix this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-153868</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 27 Jul 2009 05:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-153868</guid>
		<description>Why does this exist except to screw yourself over?</description>
		<content:encoded><![CDATA[<p>Why does this exist except to screw yourself over?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: onlooker</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-150012</link>
		<dc:creator>onlooker</dc:creator>
		<pubDate>Wed, 13 Feb 2008 11:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-150012</guid>
		<description>To do that You would have to have root access.FYI Windows root system is the registry.</description>
		<content:encoded><![CDATA[<p>To do that You would have to have root access.FYI Windows root system is the registry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicole</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-149973</link>
		<dc:creator>nicole</dc:creator>
		<pubDate>Wed, 13 Feb 2008 00:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-149973</guid>
		<description>hilarious! really a good thing to do, if nothing better to do :P</description>
		<content:encoded><![CDATA[<p>hilarious! really a good thing to do, if nothing better to do <img src='http://beconfused.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miccheng</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-149959</link>
		<dc:creator>Miccheng</dc:creator>
		<pubDate>Tue, 12 Feb 2008 21:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-149959</guid>
		<description>Wah... the kitty survived! :D</description>
		<content:encoded><![CDATA[<p>Wah&#8230; the kitty survived! <img src='http://beconfused.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tianhong</title>
		<link>http://beconfused.com/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/comment-page-1/#comment-149938</link>
		<dc:creator>Tianhong</dc:creator>
		<pubDate>Tue, 12 Feb 2008 16:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://beconfused.com/blog/2008/02/12/what-happens-if-you-run-sudo-rm-rf-in-linux/#comment-149938</guid>
		<description>haha it will be lots of fun to do reinstallation.</description>
		<content:encoded><![CDATA[<p>haha it will be lots of fun to do reinstallation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
