I just found a good thing today! Let the system automatically find ways to delete files! (simple!!!!)

zhaozj2021-02-16  101

I just found a good thing today! Let the system automatically find ways to delete files! Date: 2004/07/30 Author: zcatlinux Source: zclinux

#! / bin / bash find / home / log / -ctime 3-name bbslog / * -exec rm {} /; ## Find the BBSLOG file before the third day and delete Find / TMP / LOG / -CTIME 4 - Name mail / * -exec rm {} /; ## Find all Mail log files 4 days ago, and remove all

转载请注明原文地址:https://www.9cbs.com/read-11108.html

New Post(0)