我在家里创建了一个文件夹,并且触摸了里面的一个文件。现在我正在执行
find /home -mtime 1
但什么也没找到。这正常吗?
最佳答案
您需要使用:
find /home -mtime -1
根据man find
:
-mtime n[smhdw]
If no units are specified, this primary evaluates to true if the difference between
the file last modification time and the time find was started, rounded up to the next
full 24-hour period, is n 24-hour periods.
If units are specified, this primary evaluates to true if the difference between the
file last modification time and the time find was started is exactly n units.
关于linux - 用mtime查找不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26561983/