跟踪 launchtllocate 数据库创建

跟踪 launchtllocate 数据库创建

我正在运行locate命令以在 MacOS 上查找文件,然后收到一条警告,提示locate.database需要使用某个命令来创建。我注意到构建数据库需要很长时间launchctl——有没有办法跟踪命令的进度?

以下是 CLI 代码片段:

cjs-MBP15:auth_armistice cj$ locate /CoreServices.h

WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.

相关内容