Ubuntu Linux
 
 
 
 
Home      tmp folder
ubuntu linux
Ubuntu Technical Documentation
Ubuntu 7.10 to 9.04 Documentation


 
When ever we copy the file in /tmp folder it will delete automatically when we restart the computer.

If we want more some days means edit the following configuration file

vim /etc/default/rcS

Edit TMPTIME=0 ---> DEFAULT VALUE IS ZERO MODIFY AS PER YOUR NEED

rcS - variables that affect the behavior of boot scripts

TMPTIME
              On  boot the files in /tmp will be deleted if their modification
              time is more than TMPTIME days ago.  A value  of  0  means  that
              files are removed regardless of age.  If you don’t want the sys‐
              tem to clean /tmp then set TMPTIME to a  negative  value  (e.g.,
              -1) or to the word infinite.