If you are facing a problem of low disk space, then it is always suggested to clean your trash on a regular basis because a trash full of unwanted files and folder may consume a majority part of your disk space. I am pretty sure that many of you forget to empty your trash regularly, so in this kind of situation, you can use “Autotrash” function.
Basically, autotrash application wipes all your unwanted data from your trash automatically after a particular period of time. You just need to install and configure it according to your need, just have a glance at this article to find out how to empty your trash automatically in Ubuntu 14.04.
Steps to Empty your Trash Automatically:
Step 1: First open your terminal by using “Ctrl +ALT +T” button combination and type: “sudo add – apt – repository ppa:bneijt/ppa” which is used to install repository for autotrash and then press enter.
Step 2: You’ll be prompted to provide your Ubuntu password. Just type your password and then press enter.
Step 3: Now type: “sudo apt – get install autotrash” in order to install the autotrash application.
Step 4: After installing autotrash now its time to open crontab, for that just type “crontab -e”.
Step 5: Now, scroll down to the end of the crontab file and then type: “@daily /usr/bin/autotrash -d 30”, as shown in the image below and then click on “Save” button to save your crontab file.
Step 6: Now, go to your Unity dash and then type “startup”, you’ll see Startup Application icon. Just click on that icon to open.
Step 7: After that you may see a new window “startup application preferences,” under Additional startup programs you’ll see “Add” button just click on that to add Autotrash application.
Step 8: Under add startup program window just type your application name, command, and comment and then click on Add button as shown in the image below.
Step 9: Finally you can see your autotrash application is now under additional startup programs.
That’s all friends, Keep reading.
Leave a Reply