Clearing the thumbnail cache on linux
Linux systems also display thumbnails. It always saves these mini images to make it display more quickly.
So it always saves too much thumbnails which takes a lot of spaces. So this is how we will clear the thumbnails cache.
How to do?
• Create the file
/etc/crond.daily/clean_thumbnails: sudo gedit /etc/cron.daily/clean_thumbnails
• Copy and paste it:
#!/bin/sh
nice find /home/yourlogin/.thumbnails -name "*.png" -mtime +15 | xargs rm -f
•
chmod +x /etc/cron.daily/clean_thumbnails will be executable.
Note
This cleaning is no longer necessary with Ubuntu 8.10: The system will purge itself thumbnails.
The cache is cleared if there is an excess of the maximum age and miniatures or the maximum cache size; This configuration with gconf-editor in:
/desktop/gnome/thumbnail_cache/max_size (maximum size cache)
/desktop/gnome/thumbnail_cache/max_age (maximum age of a thumbnail)