[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Can I bin this stuff?
On Wed, May 10, 2000 at 07:51:17PM +0100, Al Hudson wrote:
>
> > Are they temporary files and directories that the OS has created and not
> > deleted, but which can now be safely deleted and is there something wrong
> > with my configuration which is causing the OS not to delete them automatically?
> If something's in /tmp, and it's deletable, then there shouldn't be any
> harm in deleting it, crap applications not withstanding. I guess if you
> delete the kfm cache, it may make kfm slightly slower as it recaches (?
> dunno, but I would guess that's how it works), but I don't think you'll
> break anything..
Debian tends to wipe everything off /tmp on INIT, and KDE worked
fine, so you can delete them.
Here's an snip of the relevant init script:
#
# bootmisc.sh Miscellaneous things to be done during bootup.
#
# Version: @(#)bootmisc.sh 2.78 13-Nov-1999 miquels [at] cistron.nl
#
<snip><snip><snip>
#
# Wipe /tmp (and don't erase `lost+found', `quota.user' or `quota.group')!
# Note that files _in_ lost+found _are_ deleted.
#
[ "$VERBOSE" != no ] && echo -n "Cleaning: /tmp "
#
# If $TMPTIME is set to 0, we do not use any ctime expression
# at all, so we can also delete files with timestamps
# in the future!
#
if [ "$TMPTIME" = 0 ]
then
TEXPR=""
else
TEXPR="! -ctime -$TMPTIME"
fi
( cd /tmp && \
find . -xdev \
$TEXPR \
! -name . \
! \( -name lost+found -uid 0 \) \
! \( -name quota.user -uid 0 \) \
! \( -name quota.group -uid 0 \) \
-depth -exec rm -rf -- {} \; )
rm -f /tmp/.X*-lock
This should do the trick nicely :)
--
José L Gómez Dans PhD student
Radar & Communications Group
Department of Electronic Engineering
University of Sheffield UK
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.