1828184 Members
2491 Online
109975 Solutions
New Discussion

/tmp and tmpfs

 
brian_31
Super Advisor

/tmp and tmpfs

How is /tmp handled in Linux? I know that in HP-UX we could control it from a file in /sbin/init.d to clear up on reboots and in SUN it is cleared up on reboots. Also i see when doing a df a tmpfs filesystem mounted on /dev/shm , Just curious what it is? Please help..

Thanks

Brian.
1 REPLY 1
Tim Nelson
Honored Contributor

Re: /tmp and tmpfs

it depends on how you created it.

is it part of "/" ? then it is ext3 filesystem and therefore reboot scripts could rm files.

if you specifically created it as a tmpfs then it gets recreated from scratch during reboot.

I have never seen /tmp as a tmpfs only as a ext3 filesystem, but that does not mean it is not possbile.

look in your /etc/fstab
is there a separate entry for /tmp ? if so what type is specified ?