Thursday, December 19, 2013

Update the locate database in OS X Mavericks (10.9)

Greetings, weary tech[no] traveler!

A great command to help find files via the Unix command line is "locate".  Not only is it simple to use:

locate <name of file>   (without the '<' and '>' characters)

but it is quick to return results too.

To do this, the "locate" command relies on a local database to index and, furthermore, return results to you quickly.  Therefore, this local database needs to be updated periodically.

Unlike most other Unix based operating systems, simply running "updatedb" in the OS X (10.9 mavericks) terminal won't work.  So how do we update the locate database for OS X Mavericks (OS 10.9)?  Like this:

1.  Launch terminal

2.  Change your user session to root:
     sudo su -  (then type your password)

3.  Go to the directory /usr/libexec/
     cd /usr/libexec/

4.  Run the following command to update the locate database:
     ./locate.updatedb

After a minute (or 5) your locate database will be updated, and you can continue to use your command line.

It should be noted that this will only work for those who have sudo privileges to their machine.  For good practice, remember to log out of root when you're done (by typing 'exit' at the command line).

FIRST POST!!~1! I mean...Welcome, wastland traveler!

Greetings, weary tech[no] traveler!

If you're reading this, chances are you've come across a tech problem in your travels throughout the techno wasteland, and you need help solving it.  Or perhaps, you're just interested in reading my first post ever.  Anyway....

This blog will be a survival guide dedicated to technological problems I have encountered and solved.  Here, you will find a growing collection of recipes and 'how-to' solutions related to DJing technologies,  coding (creative or otherwise), system administration (OS X, Linux, Windows, etc.), and various tips and tricks.


Like yourself, I've often turned to the internet to see if others have encountered the same problems, and if they have found solutions to those problems.  I believe it's finally time for me to give back to the technology and DJing community, via this blog.  I mean...survival guide.  :)

Feel free to leave (constructive) comments on these posts.  Perhaps your comment will correct an error in the post(s) and help someone else in the process.  That's part of what this blog is all about; helping each other out!

I hope you will find this blog useful and enjoyable to read.