<?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>gHacks technology news &#187; trash</title>
	<atom:link href="http://www.ghacks.net/tag/trash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 09:43:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get to know Linux: Removing files</title>
		<link>http://www.ghacks.net/2009/05/20/get-to-know-linux-removing-files/</link>
		<comments>http://www.ghacks.net/2009/05/20/get-to-know-linux-removing-files/#comments</comments>
		<pubDate>Wed, 20 May 2009 03:00:27 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[file deletion]]></category>
		<category><![CDATA[permanently delete files]]></category>
		<category><![CDATA[shred]]></category>
		<category><![CDATA[trash]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2009/05/20/get-to-know-linux-removing-files/</guid>
		<description><![CDATA[As you all know, with Linux there are numerous ways to deal with each and every task. Some of these ways are obvious, some are subtle, and some are as brute-force as an NFL offensive line. Each of these methods will do the same thing but, in some cases, the results are a bit different.
Such [...]]]></description>
			<content:encoded><![CDATA[<p>As you all know, with Linux there are numerous ways to deal with each and every task. Some of these ways are obvious, some are subtle, and some are as brute-force as an NFL offensive line. Each of these methods will do the same thing but, in some cases, the results are a bit different.</p>
<p>Such is the case with removing files. There are two fundamental ways to remove a file:</p>
<p>With the help of a GUI such as Thunar, Dolphin, or Nautilus</p>
<p>With the help of a command such as rm or shred.</p>
<p>In this article we will primarily examine the latter and touch on the former.</p>
<p><span id="more-12947"></span><strong>The former &#8211; GUI</strong></p>
<p>As you would expect, in all three of the graphical file managers you can easily remove a file simply by right clicking the file and selecting Delete. There are, however, some subtle differences. You will notice, in both Dolphin and Nautilus you can choose between Deleting a file and moving a file to the Trash. This behavior mimics that of Windows Explorer. Once you move a file to the Trash it will remain there until you empty your trash. Should you select to actually Delete the file, however, that file is deleted right away.</p>
<p>This behavior is not available in Thunar. With Thunar you can keep it or delete it.</p>
<p><strong>rm that file</strong></p>
<p>The basic remove command is <em>rm</em>. It is used like this:</p>
<p><em>rm OPTIONS</em></p>
<p>Believe it or not there are options to go along with the rm command. There are two options that are used most often:</p>
<p>f &#8211; This option will force the delete. In other words you will not have to answer &#8220;y&#8221; to every file you want to delete. This is very handy when you are deleted a directory.</p>
<p>r &#8211; This option will recursively delete all files within a directory as well as the directory itself.</p>
<p>As you can surmise, the r and f options are most often used together. So to delete the <strong>~/TEST</strong> directory and all of its files you would issue the command:</p>
<p><em>rm -rf ~/TEST</em></p>
<p>If you only wanted to delete the file <strong>test.txt </strong>within the <strong>~/TEST</strong> directory you would issue the command:</p>
<p><em>rm ~/TEST/test.txt</em></p>
<p>What if you wanted to delete all jpg files within the <strong>~/TEST</strong> directory? Simple:</p>
<p><em>rm -f ~/TEST/*.jpg</em></p>
<p>The * character is a wild card which means, in this case, anything that ends with .jpg. Notice the &#8220;.&#8221;. If you leave that out you can delete any file ending in jpg &#8211; not just any file with the extension .jpg.</p>
<p><strong>shredd&#8217;ing a file</strong></p>
<p>The shred command is a whole different beast. Shred is for the paranoid. Shred completely obliviates a file by overwriting its contents. Instead of deleting a file shred will simply overwrite a file and the end results will be an unreadable binary file that can then be safely removed.</p>
<p>And no matter how paranoid you are, shred will help you out. You can declare how many overwrite iterations shred will perform. You can even add a final overwrite of nothing but zeros to hide the fact that you ever shredded a file. And finally, you can also add a switch to inform shred to automatically remove the file after the iterations.</p>
<p>Shred is used like so:</p>
<p>shred OPTIONS filename</p>
<p>The most popular options are:</p>
<p>v &#8211; Show progress.</p>
<p>z &#8211; Add final overwrite of zeros.</p>
<p>u &#8211; Remove file after iterations</p>
<p>n &#8211; Overwrites <em>n </em>times</p>
<p>So to shred a file by iterating 10 times, followed by a final iteration of zeros, and then deleting the file upon completion you would issue the command:</p>
<p>shred -v -n 10 -z  FILENAME -u</p>
<p>Where FILENAME is the actual file name.</p>
<p>After that command your removed file has vanished into thin air.</p>
<p><strong>Final thoughts</strong></p>
<p>Many different routes to the same destination. Of this, Linux is the master. In the case of removing files, you can send it to the trash for possible later easy retrieval, remove it with the possibility of a much more difficult retrieval, or shred it with no hopes of retrieval. Your call.</p>

	Tags: <a href="http://www.ghacks.net/tag/file-deletion/" title="file deletion" rel="tag">file deletion</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/permanently-delete-files/" title="permanently delete files" rel="tag">permanently delete files</a>, <a href="http://www.ghacks.net/tag/shred/" title="shred" rel="tag">shred</a>, <a href="http://www.ghacks.net/tag/trash/" title="trash" rel="tag">trash</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/widgets-for-linux-gdesklets/" title="Widgets for Linux: gDesklets (December 6, 2006)">Widgets for Linux: gDesklets</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/05/20/get-to-know-linux-removing-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Recover deleted or corrupted Thunderbird messages</title>
		<link>http://www.ghacks.net/2007/01/04/recover-deleted-or-corrupted-thunderbird-messages/</link>
		<comments>http://www.ghacks.net/2007/01/04/recover-deleted-or-corrupted-thunderbird-messages/#comments</comments>
		<pubDate>Thu, 04 Jan 2007 12:02:50 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[thunderbird]]></category>
		<category><![CDATA[trash]]></category>
		<category><![CDATA[unread]]></category>
		<category><![CDATA[x mozilla status]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2007/01/04/recover-deleted-or-corrupted-thunderbird-messages/</guid>
		<description><![CDATA[It sometimes happens that I delete a mail by accident because it does look like spam or a message that I do not longer need. Thunderbird does not display that message anymore if it is completely deleted from the mail client. Unknown to many Thunderbird does not delete the messages but flags them only which means it is relatively easy to recover corrupted or deleted mails. This method only works if you have not compressed the mail folders because compressing removes deleted messages from the mail files.]]></description>
			<content:encoded><![CDATA[<p>It sometimes happens that I delete a mail by accident because it does look like spam or a message that I do not longer need. Thunderbird does not display that message anymore if it is completely deleted from the mail client. Unknown to many Thunderbird does not delete the messages but flags them only which means it is relatively easy to recover corrupted or deleted mails. This method only works if you have not compressed the mail folders because compressing removes deleted messages from the mail files.</p>
<p>Open the Thunderbird Application Data folder which is located in your document and settings folder in Windows. Select the appropriate Thunderbird profile if there is more than one and click on Mail in that profile. You get a listing of all your email addresses. If you setup <a href="http://www.ghacks.net/tag/firefox/">Firefox</a> to have different mail folders for every email address you have to click in the folder of the email address that received (or send) the message. Otherwise Local Folders is the way to go.</p>
<p><span id="more-1064"></span></p>
<p>The important files are those without extensions (Trash, Sent, Inbox ..) &#8211; locate the one that contained the mail(s) that you have deleted or are corrupted (do not show up anymore). Open it in an text editor, you could use notepad2 for instance for this purpose. Some folders might be rather big so choose a text editor that can handle large files. Thunderbird should be closed completely while editing those files. </p>
<p>All mails are basically stored in that file. The important part for us are the lines X-Mozilla-Status which defines a certain state of a message such as Read, Unread or Deleted. Search for the message(s) that you want to recover and edit the X-Mozilla-Status: XXXX line into X-Mozilla-Status: 0000 for unread or X-Mozilla-Status: 0001 for read messages.</p>
<p>Recovered messages will appear at the bottom of the folder and should be there after you startup Thunderbird for the next time. You sometimes have to delete the .msf file to make this work. If you edited the file Trash you would delete the file Trash.msf afterwards if the mails do not re-appear after a new start of Thunderbird.</p>
<p><a href="http://home.att.net/~cherokee67/restoredelmail2.html" target="_blank">source</a> (and additional information)</p>

	Tags: <a href="http://www.ghacks.net/tag/delete/" title="delete" rel="tag">delete</a>, <a href="http://www.ghacks.net/tag/email/" title="Email" rel="tag">Email</a>, <a href="http://www.ghacks.net/tag/mail/" title="mail" rel="tag">mail</a>, <a href="http://www.ghacks.net/tag/recover/" title="recover" rel="tag">recover</a>, <a href="http://www.ghacks.net/tag/thunderbird/" title="thunderbird" rel="tag">thunderbird</a>, <a href="http://www.ghacks.net/tag/trash/" title="trash" rel="tag">trash</a>, <a href="http://www.ghacks.net/tag/unread/" title="unread" rel="tag">unread</a>, <a href="http://www.ghacks.net/tag/x-mozilla-status/" title="x mozilla status" rel="tag">x mozilla status</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2006/12/04/change-the-way-thunderbird-handles-quotes/" title="Change the way Thunderbird handles quotes (December 4, 2006)">Change the way Thunderbird handles quotes</a> (0)</li>
	<li><a href="http://www.ghacks.net/2009/09/11/yahoo-mail-integrates-drop-io-to-support-100-megabyte-attachments/" title="Yahoo Mail Integrates Drop.io To Support 100 Megabyte Attachments (September 11, 2009)">Yahoo Mail Integrates Drop.io To Support 100 Megabyte Attachments</a> (8)</li>
	<li><a href="http://www.ghacks.net/2008/11/04/why-im-still-using-a-software-email-client/" title="Why I&#8217;m Still Using A Software Email Client (November 4, 2008)">Why I&#8217;m Still Using A Software Email Client</a> (17)</li>
	<li><a href="http://www.ghacks.net/2009/06/16/two-quick-email-tips-to-save-the-day/" title="Two Quick Email Tips To Save The Day (June 16, 2009)">Two Quick Email Tips To Save The Day</a> (19)</li>
	<li><a href="http://www.ghacks.net/2008/08/28/tinymail-email-protection/" title="Tinymail Email Protection (August 28, 2008)">Tinymail Email Protection</a> (18)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2007/01/04/recover-deleted-or-corrupted-thunderbird-messages/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
