如何在unix中查找最后一小时创建的文件 [英] How to find the files that are created in the last hour in unix
本文介绍了如何在unix中查找最后一小时创建的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在unix中查找最近一小时内创建的文件
How to find the files that are created in the last hour in unix
推荐答案
如果要搜索的目录是 srch_dir
那么
If the dir to search is srch_dir
then either
$ find srch_dir -cmin -60 # change time
或
$ find srch_dir -mmin -60 # modification time
或
$ find srch_dir -amin -60 # access time
显示过去一小时内创建、修改或访问的文件.
shows files created, modified or accessed in the last hour.
更正:ctime 用于更改节点时间(不确定,请纠正我)
correction :ctime is for change node time (unsure though, please correct me )
这篇关于如何在unix中查找最后一小时创建的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文