<?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 &#124; Latest Tech News, Software And Tutorials &#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 news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 13:29:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>How to use Autotrash to totally forget about the trash</title><link>http://www.ghacks.net/2010/04/12/how-to-use-autotrash-to-totally-forget-about-the-trash/</link> <comments>http://www.ghacks.net/2010/04/12/how-to-use-autotrash-to-totally-forget-about-the-trash/#comments</comments> <pubDate>Mon, 12 Apr 2010 15:33:20 +0000</pubDate> <dc:creator>Ronan Jouchet</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[maintenance]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[trash]]></category> <category><![CDATA[ubuntu tweaking]]></category> <category><![CDATA[usability]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24342</guid> <description><![CDATA[The trash (or &#8220;Recycle bin&#8221;) is a sane concept of our operating systems. A file sent to the trash can be recovered if the user realizes the file was still needed after all. Now, the problem is: when should you empty the trash? If you never empty it, it grows and wastes valuable disk space [...]]]></description> <content:encoded><![CDATA[<p>The trash (or &#8220;Recycle bin&#8221;) is a sane concept of our operating systems. A file sent to the trash can be recovered if the user realizes the file was still needed after all. Now, the problem is: when should you empty the trash?</p><ol><li>If you never empty it, it grows and wastes valuable disk space</li><li>If you empty it frequently, you lose its buffer benefits for recovery. Plus, who likes frequently doing this highly manual task?</li><li>Finally, if like me, you get bored by this nonsense, you end up permanently bypassing the trash (with systematic Shift+Delete instead of Delete), which is of course very dangerous</li></ol><p><span
id="more-24342"></span>Linux users, rejoice! Enter <a
href="http://www.logfish.net/pr/autotrash/">Autotrash</a>. The name may sound a little scary, but this tiny command-line Python application is actually very friendly and fully solves the problems I just exposed. Its humble task is to selectively purge your trash based on certain criteria that you specify, like Deletion date, Remaining disk space, or Regular expressions.</p><p><em>Edit 2010/04/14: <strong>Windows users</strong>, Martin found a great app for you, read <a
href="http://www.ghacks.net/2010/04/14/recycle-bin-manager/">his followup article</a>.</em></p><p>For example, you can tell Autotrash to delete files that have been in the trash for more than 7 days ago, and to ensure that at least 10GB remain available:</p><p><img
class="alignnone size-full wp-image-24355" style="margin-top: 5px;margin-bottom: 5px" src="http://www.ghacks.net/wp-content/uploads/2010/04/autotrash-2.png" alt="" width="567" height="120" /></p><p>This means our three problems are solved:</p><ol><li>The trash never gets too big</li><li>It always contains a reasonable recent backlog of deleted items, ready for the occasional recovery</li><li>Geeks like me can come back to sane Delete practices</li></ol><p>The next question you&#8217;ll probably ask is: &#8220;Great, but I don&#8217;t want to have to run Autotrash manually, how do I setup a schedule?&#8221;. In typical GNU style, Autotrash doesn&#8217;t do that, and it&#8217;s okay because it&#8217;s not its job. To do the scheduling, I suggest that:</p><ul><li>Either you <a
href="http://www.google.com/search?q=howto+cron">setup a cron task</a> running every n hours</li><li>Or, if you are as lazy as I am, you can simply add Autotrash to the Startup programs:<br
/> <img
class="alignnone size-full wp-image-24360" style="margin-top: 5px;margin-bottom: 5px" src="http://www.ghacks.net/wp-content/uploads/2010/04/autotrash-3.png" alt="" width="428" height="153" /><br
/> In my case, I generally shut down my computer for the night, so  launching Autotrash at startup is a satisfying &#8220;good enough&#8221; tradeoff.</li></ul><p>The most straightforward way to install Autotrash on an Ubuntu machine is to use its PPA. Inside a terminal, enter:<br
/> <code>sudo add-apt-repository ppa:bneijt/ppa &amp;&amp; sudo apt-get update &amp;&amp; sudo apt-get install autotrash</code></p><p>Once the installation is done, open the manual page to see what it can do, and do your own setup:<br
/> <code>man autotrash</code></p><p><a
href="http://www.logfish.net/pr/autotrash/">Autotrash</a> is free software licensed under the GPLv3, currently available as source or Ubuntu PPA. Special thanks to <a
href="http://jeff.ecchi.ca/blog/">nekohayo</a> who made me discover it.</p><p><em>Ronan is a geek and musician living in Montreal. He enjoys days when his hard drive doesn&#8217;t evaporate because of an accidental keystroke and rambles about software, music and life at <a
href="http://www.flyingmolehill.com">flying molehill</a>.</em></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/12/how-to-use-autotrash-to-totally-forget-about-the-trash/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <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. [...]]]></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> ]]></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 Brinkmann</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 Firefox 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>source (and additional information)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/01/04/recover-deleted-or-corrupted-thunderbird-messages/feed/</wfw:commentRss> <slash:comments>24</slash:comments> </item> </channel> </rss>
