Page 1 of 1

[ SOLVED]The /tmp directory

PostPosted: Feb 26th, '13, 12:52
by nigelc
When does the /tmp directory get cleared out?
There have been files there for ages.
tmpwatch is in :
/etc/cron.daily/tmpwatch

Re: The /tmp directory

PostPosted: Feb 26th, '13, 14:04
by magfan
You can mark the appropriate check box in mcc: Boot -> Set up boot system -> Advanced -> Clean /tmp at each boot
I think this box is not checked by default.

Re: The /tmp directory

PostPosted: Feb 26th, '13, 16:55
by M8R3t0f541
You could also make /tmp a ramdisk by adding this line to /etx/fstab:

Code: Select all
tmpfs      /tmp   tmpfs   defaults   0 0

Re: The /tmp directory

PostPosted: Feb 26th, '13, 17:57
by djennings
You could also make /tmp a ramdisk by adding this line to /etx/fstab:


That is what setting the option described in the first reply does.

BTW: If you set a security level higher than default then your tmp folder will be /home/user/tmp.
As far as I am aware this folder never gets cleared. (although I may be wrong)