Sunday, 28 October 2018

macos - What's the equivalent of Linux's updatedb command for the Mac?


If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?



Answer



It's locate.updatedb on Mac.


sudo /usr/libexec/locate.updatedb

For more information see the locate.updatedb man page.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...