0

Random curiosity had me look up when exactly /tmp was cleared, to discover that most OS do it at shutdown or boot up. I had always thought it was more of a "whenever we need to reclaim space" logic.

This makes me wonder about all my cloud VMs, when are their /tmp folders cleared? Generally cloud VMs are never shut down, not unless you have done some upgrade requiring it for some reason, even in that case now of days your probably just tossing an image on a new box rather then upgrading the current one. I've had VMs that were running for well over half a year straight and likely will keep running longer.

On these boxes will /tmp just keep building up? If I have a few programs that leave junk in /tmp intermittently will my VM randomly go down in 2 years because it ran out of space?

If the question is too generic lets ask specifically about redhat/centos vms on ECS, just because it seems like the most common cloud VM out there, and the one I personally use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.