Setting Cron job to delete file after 24 hours

前端 未结 4 1552
再見小時候
再見小時候 2021-02-10 09:22

I read all the related questions and was unable to understand them. I am using Plesk CPanel to set cron job as it was advised by everyone.

I want to delete all files fro

4条回答
  •  借酒劲吻你
    2021-02-10 09:43

    I use this in a shell script...

    find /some/path -mtime +7 -exec rm {} \; # delete > 7 days old
    

提交回复
热议问题