在寻找最后30分钟修改其不被访问的文件/文件? [英] Finding the files which are not accessed/modified in last 30min?

查看:203
本文介绍了在寻找最后30分钟修改其不被访问的文件/文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我想给通知谁没有在 30分钟访问文件的用户。使用shell脚本。是否有可能发现这是不是在使用find 30分钟访问的文件。我已经检查。

I've one requirement, i want to give the notifications to the users who have not accessed the files in 30 min. using the shell script. Is it possible to find the files which was not accessed in 30 min using find. I'd checked.

find /opt/SP/tibmft/scripts/ -mtime 0

这将获取这是在过去24小时体改文件。

which will fetch the files which was modifed in last 24 hours.

我的要求是取这是在过去的30分钟中创建和不被用户访问的文件?请建议的解决方案,如何实现这一目标?

My requirement is fetch the files which was created in the last 30 min and not been accessed by the user? Please suggest the solution, how to achieve this?

推荐答案

尝试使用

find PATH -cmin -30 -and -amin +30

这篇关于在寻找最后30分钟修改其不被访问的文件/文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆