Sunday, April 29, 2012

Auto-deleting files from Trash and trash-cli package

Two tips about using Trash (aka Recycle Bin) folder efficiently on KDE:
  1. You can configure Dolphin to automatically delete files from Trash that are older than a certain number of days.  Use Dolphin menu > Configure Dolphin... > Trash > Delete files older than setting.
  2. You can access your Trash from command line if you have trash-cli package installed.  (Install it by running sudo apt-get install trash-cli command.)  Once installed, trash-list command shows the contents of your Trash, trash-put command moves files to Trash, and trash-empty command permanently deletes everything in Trash.
Source: A comment on Stefaan Lippens’ webface.