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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux