Re: is it save to clean /var/tmp?
Hello
William Ballard (<40618.nospam@comcast.net>) wrote:
> /tmp seems to clean itself up on reboots; but /var/tmp contains a
> vi.recover which I think is making me receive annoying mails about how
> I can recover my files every time I reboot.
>
> I'm going to delete /var/tmp/vi.recover, but is it safe to delete
> everything else in /var/tmp after a reboot?
Basically: no. it is not safe. From the File Hierarchy Standard (2.3):
|/var/tmp : Temporary files preserved between system reboots
|
|Purpose
|
|The /var/tmp directory is made available for programs that
|requiretemporary files or directories that are preserved between system
|reboots. Therefore, data stored in /var/tmp is more persistent than
|data in /tmp.
|Files and directories located in /var/tmp must not be deleted when the
|system is booted. Although data stored in /var/tmp is typically deleted
|in a site-specific manner, it is recommended that deletions occur at a
|less frequent interval than /tmp.
You can of course delete the files from time to time, but probably some
apps expect their files to still be there after reboot.
best regards
Andreas Janssen
--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html
Reply to: