Re: cleaning /tmp directory



On Wed, 2010-03-31 at 15:58 +0200, Adalbert Prokop wrote:
There is no need to reinvent the wheel. Fedora comes with tmpwatch,
which does exactly what you want - scans /tmp (and possibly other
directories) and deletes unused files.

Not quite... It will delete not recently looked at files, whether you
actually used them or not. It's an important distinction, here's why:

If you do something like list the contents of /tmp in Nautilus or
Konqueror, or use any indexing thingy that looks through /tmp, you've
just /read/ those files again, and reset the timeout. Do that often
enough, and tmpwatch will never clear out those files.

I've been careful to avoid doing any of that, and still find /very/ old
files in the /tmp directory. I still haven't found out what's doing it.

--
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: terminological obscurity
    ... anomolous why Guido didn't say what he meant himself. ... the distinction between homogenous data and a homogenous ... >> that at the Object level, we are at lists of Objects and tuples of ... >in Python but a recursive data structure. ...
    (comp.lang.python)
  • Re: Scheme closures
    ... >>distinction between #f and nil plays an important role. ... Common Lisp's ASSOC works on lists that contain conses ... , and returns a cons when it has found one, and nil otherwise. ...
    (comp.lang.lisp)
  • Re: Death to tuples!
    ... >> It seems that the distinction between tuples and lists has slowly been ... >> either side of the assignment, and iterators on the values side. ... >> accepts not only sequences but iterators. ...
    (comp.lang.python)
  • Re: help in query!
    ... I mention that SQL doesn't return ... A technical vs conceptional distinction. ... it is interesting that technical bags and conceptual lists ...
    (comp.databases.pick)
  • Death to tuples!
    ... It seems that the distinction between tuples and lists has slowly been ... accepts not only sequences but iterators. ... Removing the tuple type is clearly a Py3K action. ...
    (comp.lang.python)