Instead of clearing the whole tmp directory I will remove old files/directories by month name (Jan, Feb etc):
sudo rm -R `ls -altr /tmp/ | grep Jan | awk '{print "/tmp/" $9}'`
Alternative: find files created more than 7 days ago and remove them:
find /tmp -mtime +7 -print0 | xargs -0 /bin/rm -R -f
Published: July 28, 2022
The information on this page is user generated content. The content does not claim to be complete or correct.
Everybody is invited to add or change the data. Just click on this link. No login or email is required. Thanks.