使用查找找到昨天修改过的文件 [英] Using find to locate files modified within yesterday
本文介绍了使用查找找到昨天修改过的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获得一个shell命令来查找昨天的修改日期的文件-仅24小时.这意味着我想查找仅在昨天修改过的文件.
I would like to get a shell command to find the files with a modification date for yesterday — 24 hours only. That means I would like to find the files which were modified yesterday only.
推荐答案
将find与 mtime
和 daystart
一起使用,它将查找1 * 24小时前修改的文件,从从午夜(daystart)开始的计算:
Use find with mtime
and daystart
, it will find files modified 1*24 hours ago, starting calculations from midnight (daystart):
find dir -daystart -mtime 1
这篇关于使用查找找到昨天修改过的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文