Clean up / filesystem

Arthur Chance freebsd at qeng-ho.org
Sat Oct 9 17:38:44 UTC 2010


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

-- 
"Although the wombat is real and the dragon is not, few know what a
wombat looks like, but everyone knows what a dragon looks like."

	-- Avram Davidson, _Adventures in Unhistory_


More information about the freebsd-questions mailing list