/tmp & /var/tmp in ubuntu
Tom H
tomh0665 at gmail.com
Wed Jun 6 08:51:57 UTC 2012
On Tue, Jun 5, 2012 at 2:04 PM, Rajeev Prasad <rp.neuli at yahoo.com> wrote:
> From: Tom H <tomh0665 at gmail.com>
> Sent: Tuesday, June 5, 2012 12:36 PM
> On Tue, Jun 5, 2012 at 1:13 PM, Rajeev Prasad <rp.neuli at yahoo.com> wrote:
>>>
>>> comparing to solaris in which /tmp actually affects system RAM. so you
>>> should not keep anything big in /tmp.
>>>
>>> is it the same in ubuntu?
>>>
>>> can i keep my tmp data in /var/tmp? or is it primarily meant for apps only
>>> to use?
>>
>> In Solaris, the filesystem of "/tmp" is tmpfs so it's more likely to
>> be smaller than having "/tmp" as a directory on "/" or a separate
>> partition.
>>
>> You can set up "/tmp" to use tmpfs on Ubuntu but this isn't done by
>> default, as on Solaris.
>>
>> The only difference between "/tmp" and "/var/tmp" is that files in
>> "/var/tmp" are deleted less frequently by the system without any size
>> criterion/criteria.
>
> how to control the deletion time on /var/tmp? is it the same as TMPTIME in
> /etc/default/rcS?
Please bottom-post.
TMPTIME controls "/tmp".
I have no idea how the deletion of the contents of "/vat/tmp" on
Ubuntu. I've always assumed that Ubuntu behaved like RHEL and cleared
items in "/var/tmp" that are older than 30 days but a quick look in
"/etc/init*" and "/etc/cron*" as well as root's crontab didn't yield
anything. And the only Ubuntu box that I can check at the moment has a
completely empty "/var/tmp" so I can't even check how old the oldest
file in it is.
More information about the ubuntu-users
mailing list