The easiest way to auto clean up your trash

The easiest way to auto clean up your trash

I noticed when I remove files either torrent files, or photos, videos …, they just go to the Trash
and I go to Trash to remove them for the last time.

What I want to show here, is a way to let you do an auto clean for your Trash, without your Intervention.

To make that happens, just follow the instructions :

rm -r ~/.local/share/Trash/files/*

This command just cleans the Trash.

But we want to auto clean it, so we install this application first : crontab trick

and run the following command :

@daily rm -r ~/.local/share/Trash/files/*

Now you have an automatic daily cleaning for your Trash.

To do it without a need of any additional application, you simply go to Startup Application Preferences.

And add the previous command which is :

rm -r ~/.local/share/Trash/files/*

auto clean trash
Enjoy !

http://ift.tt/NBck7k

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s