Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 11:52:42 +1300
From:      Jonathan Chen <jonc@chen.org.nz>
To:        Dick Hoogendijk <dick@nagual.st>
Cc:        freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: tmp directory
Message-ID:  <20030310225242.GA64810@grimoire.chen.org.nz>
In-Reply-To: <20030310212422.GA21988@pooh.nagual.st>
References:  <20030310212422.GA21988@pooh.nagual.st>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 10, 2003 at 10:24:22PM +0100, Dick Hoogendijk wrote:
> Debian linux cleans it's /tmp on every reboot (IF you reboot ;-)
> FreeBSD does not clean up. Lots of files stay in /tmp
> 
> Question: can I manually clean /tmp or is it better to leave things
> alone..??

You can do a clean on reboot by adding in /etc/rc.conf:

    clear_tmp_enable="YES"              # Clear /tmp at startup.

You can alternatively get your system to clear /tmp periodically by
adding into /etc/periodic.conf:

    daily_clean_tmps_enable="YES"       # Delete stuff daily

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>
----------------------------------------------------------------------
                "If everything's under control, you're going too slow"
                                                      - Mario Andretti

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030310225242.GA64810>