On 12/12/07 11:39, Venky wrote: > On Tue, Dec 11, 2007 at 07:49:39PM +0530, murageshgouda.patil at wipro.com > wrote: >> It's the basic question; Solaris uses /var/tmp/ directory within write >> system call for storing temporary data. >> >> What the basic idea of having "/var/tmp/" directory? >> And what is the difference between /var/tmp and /tmp directory? > > Not sure what you mean by the write system call using /var/tmp/, but > you can figure out the main difference between /var/tmp and /tmp by > checking their filesystem types. > > $ df -h /tmp /var/tmp > Filesystem size used avail capacity Mounted on > swap 1.2G 11M 1.2G 1% /tmp > /dev/dsk/c0t0d0s3 4.8G 4.2G 613M 88% / > > As you can see from the output above, /var/tmp is a directory in the > root filesystem, while /tmp is mounted on swap. Essentially, /tmp > is a tmpfs filesystem and uses up your system's swap space. The > advantage is that it is much faster. The disadvantage -- putting > too much stuff in /tmp eats up your virtual memory. And if you're wondering where such things are defined, try looking at the Single UNIX Specification on unix.org or the Filesystem Hierarchy Standard at http://www.pathname.com/fhs/pub/fhs-2.3.html
-Jerry > > Venky. > _______________________________________________ > ug-bosug mailing list > List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org > List-Owner: mailto:ug-bosug-owner at opensolaris.org > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3701 bytes Desc: S/MIME Cryptographic Signature URL: <http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20071212/fe006483/attachment.bin>