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

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),

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

答案1

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

“初始化时间”是本文中使用的术语POSIX规范自由BSD称之为“时间find开始了”。 GNU 和 Solaris 没有记录它,但也使用时间原点。

答案2

时间偏移与现在相关,除非您使用该选项来表示当天的开始 (00:00)

相关内容