OK, I'm here for a quick tip. I use locate
to find files and folders a lot, especially when I'm using a system I'm not very familiar with. Mac OS X is one such system, since I've only been using it for the last few months. The problem is, Mac's have everything scattered around, and in places where a regular Linux user would not look. Take updatedb
command for example, it is found on most Linux distributions and can be invoked quite easily on the command line. For the Mac OS X, it is hidden in the directory /usr/libexec/
which is not even in the root path! And to compound that, its name is locate.updatedb
, oh thanks Apple!
How on earth am I supposed to find this program like that? [ I bet you didn't think about that eh, Steve Jobs? Just kidding :) ]
Anyhow, here's some commands to make your life easier:
$ sudo ln -s /usr/libexec/locate.updatedb /usr/bin/updatedb
$ sudo updatedb
Now you can run updatedb
like you would on a Linux box.
refer: http://blog.tayfunsen.com/2010/02/locate-database-on-mac-os-x.html
Hiç yorum yok:
Yorum Gönder