[CentOS] Automatic clean /tmp folder

Wed Apr 7 13:15:17 UTC 2021
Robert Nichols <rnicholsNOSPAM at comcast.net>

On 4/7/21 7:27 AM, Kenneth Porter wrote:
> --On Wednesday, April 07, 2021 9:00 AM +0000 Gestió Servidors <sysadmin.caos at uab.cat> wrote:
> 
>> With these files I supposed that a file with more than 10 days in /tmp
>> would be automatically deleted, but today I have found some files/folders
>> with more than 10 days.
>>
>> What I have done wrong?
> 
> The test is on access time, not modification. Have they been read in the last 10 days?

And note that a GUI file manager might attempt to read every file in a
directory in order to determine its type and display the correct icon.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.