13

Trash-bin CLI

view full story
linux-howto

http://crunchbanglinux.org – Today I wondered how to empty the trash bin from CLI (just for fun :D), I googled it and foundrm-rf /home/USER/.local/share/Trash/files/* rm-rf /home/USER/.local/share/Trash/info/*fine, that works.I have also found something more, a little program called trash-cli. ;)It does more that just emptying the trash, it provides a "mild version of rm command". Files and/or folders, instead of being just deleted with rm, can be moved into the trash bin and even restored from CLI, the same way it is done in Thunar, cool!The program is written in python and requires a version higher than 2.7 so (HowTos)