Note: Periodically delete under / tmp without using tmpwatch
      
      
        
        
        
        
This article
Note
- Garbage collects under / tmp, so I want to automatically delete old ones!
 
- I usually use tmpwatch, but it doesn't exist in OS like alpine or docker disposable premise!
 
- Then, I found out that it can be executed with the find command, so make a note of it.
 
find /tmp -mtime +7 ! -type d -delete
At the end