Clean up / filesystem

Caleb Stein caleb.stein at me.com
Sat Oct 9 17:40:46 UTC 2010


On Sat, 09 Oct 2010 10:38:41 -0700, Arthur Chance <freebsd at qeng-ho.org>  
wrote:

> On 10/09/10 17:58, Caleb Stein wrote:
>> On Fri, 08 Oct 2010 22:46:55 -0700, Robert Huff <roberthuff at rcn.com>  
>> wrote:
> [Full /tmp discussion snipped]
>>
>> So is it safe to do "rm -rf /tmp/*"?
>
> Not if running an X desktop, as all sorts of things get stuck in /tmp  
> that are needed. In single user mode it should be safe, and it probably  
> is when simply running on the console.
>
> As a long term solution, if you wish to clear /tmp every reboot add
>
> clear_tmp_enable="YES"	# Clear /tmp at startup.
>
> to your /etc/rc.conf
>

Ok, so it won't hurt X as long as I clear /tmp/ while X isn't running?


More information about the freebsd-questions mailing list