LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   tmp directory being deleted (https://www.linuxquestions.org/questions/linux-general-1/tmp-directory-being-deleted-248438/)

jpokrzyk 10-28-2004 01:31 PM

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

Tinkster 10-28-2004 02:31 PM

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

ugge 10-28-2004 02:54 PM

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.

jschiwal 10-30-2004 06:42 PM

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.