macOS locate 命令报错解决方法
macOS About 497 wordslocate
locate
命令和find
命令功能相同,快速查找文件或文件夹。
错误信息
> locate docker
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.
解决方法
使用提示中的命令即可:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
Views: 1,116 · Posted: 2023-05-26
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...