Skip to main content
  • Home
  • Womblog
  • Contact
  • Login
By Wombats logo By Wombats
You should see them code...
Home

Linux Problem Solving: locate

In:
  • Linux
19Jun2008

So, I've been working with setting up a virtual environment on a server at work that I can use for development. Particularly, I'm using it to do my testing and work on Ubercart in Drupal 6. While I enjoy learning new things, the whole experience has been quite a hassle. My container kept hitting a memory limit (which I thought was sufficient) every time I tried to install something new with yum, causing things to go awry. It's been a long two days.

Anyways, I just figured I'd share solutions to difficulties I encounter in case anyone else out there has the same troubles. Smiling

This post will briefly cover the locate command. I'm quite green when it comes to grokking the file structure of a Linux install. Not a huge deal... I should be able to find anything I want with the locate command. Unfortunately, I kept running into this wall...

[ryan@ryan ~]# locate httpd.conf
locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory

My server admin didn't have any quick ideas, but Google usually turns up nice results. Eye I found a few pages with tips, and the second one did the trick. I have to run updatedb to build that database. I recommend running it as a background process, since it may take a while for the initial construction... I believe it has to index all the files on disk.

There... I hope that helps someone else and saves them some frustration. Cool

  • Add new comment
Entries (RSS)

About Ryan

Ryan Szrama is a Drupal e-commerce developer for Commerce Guys, focusing on Drupal Commerce. Aside from his work, he loves his wife, his daughter, his church, and a good book over a white mocha.

You can find him elsewhere online at:

Commerce Guys logo Druplicon Twitter

Find me at these upcoming events...

I'll be presenting Drupal Commerce at the following events and sponsoring some with Commerce Guys. Be sure to say hi!

DrupalCon Denver 2012 - I'm Giving Training Sessions!
Speaking and training at
DrupalCon Denver 2012

Some of my other sites...

Find more content from me and my wife at a couple of our other websites:

  • My raw milk cheese e-commerce site
  • My roguelike / game development blog
  • Christina's children's book reviews
Bible Books Christianity Drupal Drupalcon drupalconszeged2008 Family Food Homeownership Marriage Ministry Music Programming Space Ubercamp Ubercart Vacation Work
more tags
Creative Commons License © 2009 Ryan Szrama

Drupal port by 3rdWorld : Created by Design Disease