Linux Lite Forums

Full Version: Additional .Trash hidden folders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,


I have been doing some clean-up on 1 off my installs, HP Laptop.
I use this a lot to test/experiment before committing to a live PC.


I have found a bunch of .trash folders on different partitions, with large amount files.
I have different partitions to make it easier to include/exclude things from back-ups.
(ex: I have a partition called "vbox", keep all Virtual Machines separate from regular back-ups)


Doing some Googling led me to:
1. If you delete a file in your /home folder they end up in rubbish bin, so you can empty them manually, unless you do a [shift]+[delete]
2. If you delete a file on something "not" in home, a "hidden" .trash folder is created with the deleted files, unless you do a [shift]+[delete]


What I couldn't find was a definitive,
"Can I delete these non /home .trash folders manually, or is there a specific method to not mess up the file system"


Thanks...
Well I found the answer, yes.
Also to make it easier there is a command line utility to find them "all" , trash-cli



Code:
sudo apt-get install trash-cli


then with a:
Code:
trash-empty


Removed: 687 files @ 5.85GB

Thanks for sharing, Wirezfree. Highly appreciated.
Will come in handy Smile