Re: cleaning /tmp directory

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

 



Wolfgang S. Rupprecht wrote:
> Gregory Hosler <ghosler@xxxxxxxxxx> writes:
>> On 03/31/2010 09:52 PM, Maurizio Marini wrote:
>>> Hi there
>>> i need a cron script that cleans every day crap into /tmp
>>> I have there a lot of temp files but i dunno which ones can be safely wiped, 
>>> and it is very time comsuming job, too.
>>> Any script written by someone of you will be very apreciated :)
>>> tia
>>> Maurizio
>> There already is a cron that will delete file out of /tmp that are 10 days old.
> 
> In addition, at shutdown time everything in /tmp is fair game for
> deletion.  As one of the last things done on all my machines I clean out
> /tmp.  In my case the reason isn't space, but clutter.  With the default
> /tmp cleaning, things build up to such a level that downloaded files
> that I only want to look at once are hard to find (such as pdf files
> etc).
> 
> Put this in /sbin/halt.local mode 755.
> 
I don't think the OP wanted overkill once in a while, scalpel rather than 
hammer. I think cruft is the target, and without a reboot.


-- 
Bill Davidsen <davidsen@xxxxxxx>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

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