AboutWelcome to Free Software Daily (FSD). FSD is a hub for news and articles by and for the free and open source community. FSD is a community driven site where members of the community submit and vote for the stories that they think are important and interesting to them. Click the "About" link to read more...
The trash project allows you to interact with your desktop trashcan from the command line. It lets users "undo" deletions made with the trash command in a similar manner to restoring files from the trashcan in a desktop environment. For experienced Linux users, the trash command comes in handy when you want to put a file into the trashcan from the command line.
We're going to look at KDE's trash system. For those who hadn't paid attention to the trash system in KDE (hey, who does?), sometime during the move from KDE 2.x to 3.x, or sometime thereafter, KDE moved its trash system from a live trash file storage system to a representative trash file system.
The trash (or “Recycle bin”) 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?
We have already discussed how to empty gnome trash from command line this will delete all the contents without prompt any warning this tutorial will explain how to get popup window before empty gnome trash.
Autotrash is a simple Python script which will purge files from your trash based on their age or the amount of free space left on the device. Using autotrash -d 30 will delete files which have been in the trash for more then 30 days. It uses the FreeDesktop.org Trash Info files included in the new GNOME system to find the correct files and the dates they where deleted.
By default, Ubuntu does not show Computer,home,network and Trash icon on the desktop in Ubuntu. Instead Ubuntu shows the Trash icon on the extreme right of the bottom panel. Also having the Trash icon on the desktop in Ubuntu is a good option, because it becomes easier to drag - drop files onto the Trash icon.
Some weeks ago, one of our customers asked for a nice
feature that was requested 4 years ago the first time
as far as I can see from the bug tracking system... I started
implement most of the features requested there and 3 days later
we have a nice trash space handling now.
I started learning computers back when DOS was all that was available to me, so I was comfortable with the command line. When Windows 95 was released my command line usage dropped considerably because there simply wasn't the "need" for it that there once was. I've gone from using the command line all the time to using it very seldom because GUI's were getting better and becoming more wide spread.