用mtime查找不起作用

我在家做了一个文件夹,里面有一个文件。 现在我正在执行

find /home -mtime 1 

但是没有find任何东西。 这是正常的吗?

你需要使用:

 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. 

您必须根据您的需要将+-添加到整数值。 系统无法理解1是默认+1