[ SOLVED]The /tmp directory

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[ SOLVED]The /tmp directory

Postby nigelc » Feb 26th, '13, 12:52

When does the /tmp directory get cleared out?
There have been files there for ages.
tmpwatch is in :
/etc/cron.daily/tmpwatch
Last edited by nigelc on Feb 28th, '13, 06:33, edited 1 time in total.
nigelc
 
Posts: 266
Joined: Aug 28th, '11, 09:35

Re: The /tmp directory

Postby magfan » Feb 26th, '13, 14:04

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.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: The /tmp directory

Postby M8R3t0f541 » Feb 26th, '13, 16:55

You could also make /tmp a ramdisk by adding this line to /etx/fstab:

Code: Select all
tmpfs      /tmp   tmpfs   defaults   0 0
M8R3t0f541
 
Posts: 7
Joined: Jan 25th, '13, 01:31
Location: Tulsa, Oklahoma

Re: The /tmp directory

Postby djennings » Feb 26th, '13, 17:57

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)
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest