Cleaning /tmp

Reindl Harald h.reindl at thelounge.net
Sat Mar 3 17:18:28 UTC 2012



Am 03.03.2012 17:55, schrieb Geoffrey Leach:
> Fedora (not just 16) leaves junk in /tmp. It's also using some of that 
> junk, for example keyring-PRgjGV/.
> 
> So what's the best way to reduce the clutter? Is there a service?

as default there are 30d instead my 1d

[root at srv-rhsoft:~]$ cat /etc/cron.daily/tmpwatch

#! /bin/sh

flags=-umc

/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
        -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
        -X '/tmp/hsperfdata_*' 1d /tmp
/usr/sbin/tmpwatch "$flags" 1d /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
        /usr/sbin/tmpwatch "$flags" -f 1d "$d"
    fi
done

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120303/3632e0e0/attachment.sig>


More information about the users mailing list