Linux Lite Forums
Additional .Trash hidden folders - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: General (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=4)
+--- Forum: On Topic (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=14)
+--- Thread: Additional .Trash hidden folders (/showthread.php?tid=2246)



Additional .Trash hidden folders - Wirezfree - 09-27-2015

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...


Re: Additional .Trash hidden folders - Wirezfree - 09-27-2015

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




Re: Additional .Trash hidden folders - LL-user - 09-27-2015

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