4 ms·
You can use /var/tmp for this purpose It is not cleared between reboots
by akdev1l 2y ago
You can use /var/tmp for this purpose
It is not cleared between reboots
- SoftTalker 2y agoDepends on the OS. In OpenBSD, /var/tmp is a symlink to ../tmp and is so is cleaned on reboots and periodically.
- akdev1l 2y agohttps://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s15.html https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s15.htm... Yeah it’s a Linux/FHS thing.
- NekkoDroid 2y agoDo note that systemd does have a tmpfiles.d (terrible name nowadays, but that is besides the point) drop-in with an extra service that will clean out /var/tmp/ of unused files when they haven't been accessed within 30 days (all of a/m/ctime are checked). Same applies to /tmp/ but with 10 days. I don't know if the service is enable by default on any distros though, so assume it is unless otherwise ensured :)