1小时前修改的文件列表 [英] List of files modified 1 hour before
本文介绍了1小时前修改的文件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在60分钟之内修改文件列表.
Hi I want a list of files modified within 60 minutes.
bash-3.2$ find . -mmin 60 -type f
find: bad option -mmin
find: [-H | -L] path-list predicate-list
bash-3.2$ /usr/xpg4/bin/find . -mmin 60 -type f
/usr/xpg4/bin/find: bad option -mmin
/usr/xpg4/bin/find: [-H | -L] path-list predicate-list
bash-3.2$
utibbwdev1#uname -a
SunOS utibbwdev1 5.10 Generic_150400-13 sun4v sparc SUNW,T5240
我收到上述错误.我的操作系统是sun版本5.10.
I am getting the above error. My OS is sun version 5.10.
推荐答案
您可以使用此命令来做到这一点.
You can do that using this command.
$ find . -mtime -1
哪里
.
是搜索路径
-mtime
时间参数
-1
列出最近1个小时内修改的文件
-1
list files modified in last 1 hours
也
$ find . -amin -60
-amin
时间参数(以分钟为单位)
-amin
time parameter (minute wise)
-60
列出最近1个小时内修改的文件
-60
list files modified in last 1 hours
这是我系统的输出:
这篇关于1小时前修改的文件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文