我无法在Mac终端中使用locate命令。这是我的情况:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
./locate.mklocatedb
^Clocate.mklocatedb: cannot build locate database
rmdir: /var/folders/sh/nzqq8z612bz1k1nt7k0jr6680000gn/T//mklocatet0qA6zDDUe:
No such file or directory
sudo -s ./locate.mklocatedb
Password:
^Clocate.mklocatedb: cannot build locate database rmdir: /tmp/mklocateIMIB7Z4JDM: No such file or directory
/etc/locate.rc未更改。
env $ LOCATE_CONFIG尚未设置。
PS:我按Ctrl + c
终止locate.mklocatedb
的原因是:
当前终端标签的右上角没有圆圈运行。
感谢您的帮助!