tmp directory being deleted
I'm running fedora. How do the files in tmp get deleted? And how can I prevent certain files or directories from being deleted?
Thanks, JP |
It's usually part of a startup-script, in Slack it would live
in /etc/rc.d/rc.M (but Slack leaves the house-keeping to root ;}) ... Just grep through the /etc directory ... Cheers, Tink |
Usually it is a command called tmpwatch that runs and cleans up files in the /tmp directory that hasn't been accessed more recently than 2 week or so.
After all temporary files are just that. |
If there is something in particular that you want to save, you could copy it to your homedir.
If it is an item that won't change, you could try setting the sticky bit for the directory, or use the 'setattr' command to set the immutable option. ( assuming that fedora has this installed, and you are using an ext2 filesystem ) For XFS filesystems, the commands are 'getfattr' and 'setfattr'. |
All times are GMT -5. The time now is 11:01 AM. |