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