

A useful tool which lets you run scripts and commands at startup. Rm /path/to/trash/* If you Don't Want to Do It Yourself:Īlright soldier! There are a couple of things you need to know. You can do this by adding a script to your crontab, which has a timer of 1 month. The first, and probably most unappealing, is to figuratively make your own Trash folder, set up a timer for it and a system for the files inside to be deleted. This one is probably you! So, you might have to try two separate things. enter code here If You Don't Have a Trash Folder Created (And You Want One): For a better understanding of foremost, check out the link provided or do your own research. The extra -T stands for timestamp so the separate outputs won't mess eachother up. If you want to do it multiple times in the same directory, do foremost -t filetype -T -i /dev/sda1 You will find what is recovered in a folder in the directory you are in called output.
#EMPTY TRASH CAN PDF#
For example, if I wanted to recover pdfs I would do foremost -t pdf -i /dev/sda1 (Obviously) Replace filetype with the type of file you need to recover. On HowToForge ( ) it tells you to run foremost -t filetype -i /dev/sda1 Let me stress that, I just found this and am not knowledgeable in this area, so do not think everything I say is true. Look at online instructions for using it, use the man page or look below at my extremely limited understanding of how this works.
#EMPTY TRASH CAN INSTALL#
You can download with sudo apt-get install foremost Take a look into the forensics program foremost. Rm /home/username/.local/share/Trash/info/* rm /home/username/.local/share/Trash/items/* Now, if you want to clear this use two separate commands. The items inside the Trash folder will be inside another folder, the items folder.

If you have a Trash Folder Already Created: Of course, that means that the space usage is not caused by that. Thank you for that So, a Trash Folder doesn't exist in terminal-land, so you have to either create your own or be OK with having the danger of losing important files forever. Explanation:ĭue to I have realized the true nature of your question. This folder may not be there because of you running from terminal, but keep reading! It is only created once a file has been moved there with a GUI (I'm not 100% about this part, but my LXDE setup only created it when I moved a file to there with the file manager).

The trash folder is located at /home/username/.local/share/Trash/. In the terminal, when you delete something it is gone forever, except if you use a recovery program like foremost (see below.) The Location of the Trash Folder
#EMPTY TRASH CAN HOW TO#
You do not have a Trash Can created, below are instructions of how to make one. )Īlso, the Trash is not what is taking up all of your space. If not, add a comment telling me I am the worst wannabe in the world. Read through all of this post until you find a satisfactory solution.
