Page 1 of 1

Emptying the trashcan in CLI

Posted: 24 Oct 2014, 00:02
by viking60
If you are using openbox or another Window manager you might not have the trashcan in your panel. So deleting a lot of files will not free up your space because you still have the data in your trashcan.
To remove it in CLI:
:A

Code: Select all

rm -rf ~/.local/share/Trash/*

Re: Emptying the trashcan in CLI

Posted: 24 Oct 2014, 02:55
by Snorkasaurus
On my bare Wheezy/OpenBox machine I needed a file manager anyways and Thunar was one of the smallest (at a whopping 130M including dependencies) and it provides easy access to "Trash". I wish it would allow for viewing both tree and bookmarks at the same time but it'll do for now. :-)

S.

Re: Emptying the trashcan in CLI

Posted: 24 Oct 2014, 08:28
by viking60
Yes Thunar (or Pcmanfm) will handle it.
On one of my boxes that I use as server I do not use any GUI at all - only tmux, to save the juice for serving.
In those cases the CLI method comes in handy.
But when I access the server via SSH i could start Thunar remotely and empty the trashcan

Code: Select all

ssh -X viking@viking-server

and start Thunar

- so yes; that is an easier way to do it