How Do I Suppress The Removal Of Files in /tmp ?
by shachter from LinuxQuestions.org on (#4TCG9)
Esteemed Colleagues:
I created a file in /tmp and was surprised to find it gone after I rebooted, as I see nothing in /usr/lib/tmpfiles.d or in /usr/lib/systemd/system or in /etc/init or in /etc/rc?.d that removes files from /tmp. The /tmp directory is part of the root filesystem and is not memory-based. I want files in /tmp to survive a reboot and therefore want to suppress their removal; where are they being removed? The relevant line from /etc/os-release is VERSION="19.1 (Tessa)". Thank you in advance for any and all replies. jay at m5 dot chicago dot il dot us


I created a file in /tmp and was surprised to find it gone after I rebooted, as I see nothing in /usr/lib/tmpfiles.d or in /usr/lib/systemd/system or in /etc/init or in /etc/rc?.d that removes files from /tmp. The /tmp directory is part of the root filesystem and is not memory-based. I want files in /tmp to survive a reboot and therefore want to suppress their removal; where are they being removed? The relevant line from /etc/os-release is VERSION="19.1 (Tessa)". Thank you in advance for any and all replies. jay at m5 dot chicago dot il dot us