본문 바로가기

Mac

[Mac] 터미널에서 'locate' 명령어 오류 날 때

오류

해결

1. 'Terminal.app' 또는 'iTerm.app' 실행

2. 다음 명령어 실행

cd /

sudo /usr/libexec/locate.updatedb

(1~2분 기다려야 'sudo /usr/libexec/locate.updatedb' 명령어가 완료 된다.)

 

https://apple.stackexchange.com/questions/301368/locate-tool-won-t-work-how-do-i-fix

 

Locate tool won’t work, how do I fix

I was trying to update the locate database, but when input sudo /usr/libexec/locate.updatedb, I got a bunch of errors. When I try to use locate again it would not work. I can’t remember what I did,...

apple.stackexchange.com