Linux查找最近修改的文件

查找当前目录下.phtml文件中,最近30分钟内修改过的文件。

find . -name '*.phtml' -type f -mmin -30

查找当前目录下.phtml文件中,最近30分钟内修改过的文件,的详细情况。

find . -name '*.phtml' -type f -mmin -30 -ls

查找当前目录下,最近1天内修改过的常规文件。

find . -type f -mtime -1

查找当前目录下,最近1天前(2天内)修改过的常规文件。

find . -type f -mtime +1

  

原文地址:https://www.cnblogs.com/wangdahai/p/5529677.html