Removing old thumbnails
KDE and KDE programs (Konqueror/Dolphin/Gwenview...) generate preview thumbnails in the ~/.thumbnails. When you move or delete original file, KDE just forgets that there is already a thumbnail. There are no cache size limit / expiration date for these thumbnails. These old thumbnails became obsolete disk space waste.
Earlier:
Topic: KDE thumbnail generator running wild ?
http://kubuntuforums.net/forums/inde...opic=3081086.0
Setting expiration date (deleting old):
Make script file (thumbsaway):
Note
user = your username
Put it in the /etc/cron.daily/. anacron should execute these scripts once a day.
Set permissions:
From UNIX permissions and chmod tutorial
http://www.unixcities.com/howto/index3.html
Links:
Clean your KDE thumbnail directory
http://www.kenschutte.com/clean_thumbnail_dir/
Chmod Wiki
http://en.wikipedia.org/wiki/Chmod
UNIX permissions and chmod tutorial
http://www.unixcities.com/howto/index3.html
HowTo Chmod
http://wiki.mybboard.net/index.php/HOWTO_Chmod
HOWTO use cron
http://gentoo-wiki.com/HOWTO_use_cron
An A-Z Index of the Linux BASH command line
http://www.ss64.com/bash/
Alphabetical Directory of Linux Commands
http://www.oreillynet.com/linux/cmd/
KDE and KDE programs (Konqueror/Dolphin/Gwenview...) generate preview thumbnails in the ~/.thumbnails. When you move or delete original file, KDE just forgets that there is already a thumbnail. There are no cache size limit / expiration date for these thumbnails. These old thumbnails became obsolete disk space waste.
Earlier:
Topic: KDE thumbnail generator running wild ?
http://kubuntuforums.net/forums/inde...opic=3081086.0
Setting expiration date (deleting old):
Make script file (thumbsaway):
Code:
#!/bin/sh #remove older than 30 days find /home/user/.thumbnails/ -mtime +30 -exec rm -f {} \;
user = your username
Put it in the /etc/cron.daily/. anacron should execute these scripts once a day.
Set permissions:
Code:
sudo chmod -v 755 /etc/cron.daily/thumbsaway
http://www.unixcities.com/howto/index3.html
So, 755 is a terse way to say 'I don't mind if other people read or run this file, but only I should be able to modify it' and 777 means 'everyone has full access to this file'
Links:
Clean your KDE thumbnail directory
http://www.kenschutte.com/clean_thumbnail_dir/
Chmod Wiki
http://en.wikipedia.org/wiki/Chmod
UNIX permissions and chmod tutorial
http://www.unixcities.com/howto/index3.html
HowTo Chmod
http://wiki.mybboard.net/index.php/HOWTO_Chmod
HOWTO use cron
http://gentoo-wiki.com/HOWTO_use_cron
An A-Z Index of the Linux BASH command line
http://www.ss64.com/bash/
Alphabetical Directory of Linux Commands
http://www.oreillynet.com/linux/cmd/
Comment