0

How to Empty the tmp partition?

Asked 4 years ago (May 10, 2021) in the field of Operating Systems by Benício98

Hiii, Is it possible to Empty the tmp partition automatically? tmp partition of my server fills up and makes some problems. Many thankssss


Answers


0
Answered 4 years ago (May 11, 2021) by Eldernode Staff

To automatically delete files that have not been used in the past day, add the following code to the Cron jobs by running the crontab -e command:

0 6 * * * find /tmp/ -atime +1 -print0 | xargs -0 rm -f

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day