Re: cleaning /tmp directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim:
>> 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:

Adalbert Prokop:
> I did not want to exaggerate the distinction between
> creation/modification/access time - simplifications are helpful in
> explanations. ;)

I prefer not to oversimplify things to the point that they're misleading
or incorrect.  If you think that files aren't being "used" when that
isn't really the deletion criteria, you're going to get confused trying
to work out why they're not being deleted.

> But yes, there is clearly a difference. Just listing the contents of a
> directory will not change the file access time, but reading the files
> surely will.

That depends on what you use to list them.  In the command line, you're
just going to read the directory.  In a graphical manager, it's probably
going to look into the files, to determine what type they are, while
listing them, not just when you try to open one of them.

As far as deleting /tmp files on shutdown or startup, as a solution, I
suggest doing so on shutdown.  That way they only get deleted on good
shutdowns.  On a crash, temp files are still there when you reboot, so
you can check things out as part of your diagnosis.

-- 
[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

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux