I'm trying to use locate to find files, but I'm not getting anything back from the program. It can't even find files that are in the current directory. How do I make locate work?
feedback
|
migrated from stackoverflow.com Nov 23 '09 at 12:36
This question came from our site for professional and enthusiast programmers.
|
In essence, you have to run updatedb first, as this builds the database that locate uses. See this blog post for a bunch of good tips , including how to setup up updatedb via cygwin cron: http://www.weiqigao.com/blog/2006/08/14/ten_steps_to_higher_cygwin_productivity.html Google 'cygwin updatedb' for a relevant post if you are having trouble with paths that include spaces. I am not getting any trouble (other than permission denied) on WinXP Pro, but other platforms may require this. | |||
|
feedback
|
|
I think the command you want is Do The locate command runs against a pre-built database of filenames | |||||
feedback
|
