find 命令中的“初始化时间”是多少?

use*_*279 4 shell find

当我尝试参考 find 命令的手册页时,我遇到了

-mmin n
        The value of n can be one of the following:
          n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
               n.
          -n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
               less than n.
          +n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 60 seconds (with any remainder discarded), is
               greater than n (in case of UNIX03, greater than n+1).
        Note: Files modified after the find command start time will not be taken into account. However, when the find command is used within the unary NOT
        operator for non-UNIX03 behavior, the files modified after the command start time will be displayed until the value of n.
   -mtime n
        The value of n can be one of the following:
          n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 86400 seconds (with any remainder discarded),
               is n. 86400 seconds is 24 hours.
          -n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 86400 seconds (with any remainder discarded),
               is less than n.
          +n
               Evaluates as True if the file modification time subtracted from the initialization time, divided by 86400 seconds (with any remainder discarded),
Run Code Online (Sandbox Code Playgroud)

这个初始化时间是多少?这是调用 find 命令的时间吗?

Gil*_*il' 5

是的。“初始化时间”是find命令启动之后和开始处理任何文件之前的特定时间。这是一个常见的时间来源,以避免基于时间的比较的结果取决于遍历文件的顺序。

“初始化时间”是POSIX 规范中使用的术语。FreeBSD称之为“时间find开始了”。GNU 和 Solaris 没有记录它,但也使用时间来源。