Linux Cleanup of /tmp Directory

linuxtmp

What mechanism controls how often/when the /tmp directory is cleaned up. If there is such built-in mechanism at all or do I need to resort to a custom cron?

I'd appreciate either a specific command/tool or if you just point me to where I can find the appropriate documentation.

I am using Ubuntu 10.04 server if it matters.

Best Answer

On Ubuntu, install tmpreaper.

apt-get install tmpreaper