[CentOS] /tmp directory

Mon Dec 10 17:15:59 UTC 2012
Peter Eckel <lists at eckel-edv.de>

On 10.12.2012, at 18:01, Rudi Ahlers <Rudi at SoftDux.com> wrote:

> On Mon, Dec 10, 2012 at 6:58 PM,  <m.roth at 5-cent.us> wrote:
>> Rudi Ahlers wrote:
>>>>>> Am 10.12.2012 um 11:22 schrieb John Doe:
>>>>>>> From: Jerry Geis <geisj at pagestation.com>
>>>>>>> 
>>>>>>> You also have '/var/tmp' that is expected to survive reboots and
>>>>>>> should be less often (never?) cleared.
>>>>>> 
>>>>>> cat /etc/cron.daily/tmpwatch
>>>>>> flags=-umc
>>>>>> /usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
>>>>>>     -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
>>>>>>     -X '/tmp/hsperfdata_*' 240 /tmp
>>>>>> /usr/sbin/tmpwatch "$flags" 720 /var/tmp
>>>>>> for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
>>>>>>    if [ -d "$d" ]; then
>>>>>>     /usr/sbin/tmpwatch "$flags" -f 720 "$d"
>>>>>>    fi
>>>>>> done
>>>>>> 
>>>>>> 720 = 30 days
>>>>> 
>>>>> what? you mean this dir called /var/tmp is actually for temporary
>>>>> stuff?? man, this system is seriously screwed up...
>>> 
>>> What else do you use it for?
>> 
>> I think John intended the cmt with <humor></humor>
>> 
>>        mark "temporary files are temporary? who'd'a thunk it?"
>> 
>> _______________________________________________
> 
> 
> Probably. But I've seen people using /tmp to store rather important
> stuff, which is why I asked the question - to get clarity.

Sure. I've  also seen people using the Windows trash can for the very same purpose. 

In the IT business, there is a word for that kind of people. We call them 'stupid'.

Cheers, 

  Peter.