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