Question

how to create a permanent folder in the temporary folder in ubuntu? without being deleted when the computer shuts down, and not have to repeat the process every time the computer restarts

Was it helpful?

Solution

By convention, /tmp/ gets cleaned on reboot. You may need to place stateful information into /var/run/$myapp/ or a similar spot. Make sure you clean that once it grows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top