/tmp & /var/tmp in ubuntu

Rajeev Prasad rp.neuli at yahoo.com
Tue Jun 5 18:04:04 UTC 2012


hi Tom,
 
how to control the deletion time on /var/tmp? is it the same as TMPTIME in /etc/default/rcS ?
 
ty.
Rajeev
 

________________________________
From: Tom H <tomh0665 at gmail.com>
To: Ubuntu Users <ubuntu-users at lists.ubuntu.com> 
Sent: Tuesday, June 5, 2012 12:36 PM
Subject: Re: /tmp & /var/tmp in ubuntu

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.

-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120605/12211b61/attachment.html>


More information about the ubuntu-users mailing list