如果我运行以下命令:
find . -name "*.jar" -type f -ctime +1我没有得到任何结果,但是如果我跑:
find . -name "*.jar" -type f -ctime 1我得到了结果。
发布于 2011-09-28 07:11:14
这意味着目录中的所有jar文件在48小时前都发生了状态更改。
根据find手册页面,
-ctime n
File's status was last changed n*24 hours ago.还有..。
When find figures out how many 24-hour periods ago the file was
last accessed, any fractional part is ignored, so to match -atime +1,
a file has to have been accessed at least two days ago.在其他地方..。
+n for greater than n因此,-ctime +1意味着文件状态必须至少在48小时前发生了更改。
https://unix.stackexchange.com/questions/21579
复制相似问题