Is It Safe to Empty Tmp Linux?
Contents

/tmp is needed by programs to store (temporary) information. It’s not a good idea to delete files in /tmp while the system is running, unless you know exactly which files are in use and which are not. /tmp can (should) be cleaned during a reboot.

What happens if I delete a tmp file?

TMP files are usually deleted automatically by their parent application (the software, game, application) which created them. … TMP files tend to accumulate over time and take up a lot of disk space. All this said, I have to add an important note: not all TMP files are safe to remove.

Is tmp safe to delete?

Yes,You can safely delete them. Yup. Just make sure you don’t run programs like Internet browsers or that Windows or any other app is updating. This way you can avoid problems with fles that are still being used.

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest