Linux deletes newly added files by time

Upload a picture in minio:
insert image description here

First, query the newly added commands in linux:
newly added within one day today:

find  -name "*" -mtime -1 

insert image description here
Delete command:
Delete the new ones added in today's day:

 find  -name "*" -mtime -1 -delete

It can be seen that it has been deleted:
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42260782/article/details/131113007