I have read that to run locate command on CYGWIN first I need to run the following command.

updatedb --localpaths=c:/

what this command exactly do as I run this on CYGWIN and it is taking too much time.


This updates the locate database, which will indeed take a long time. It has to traverse every path on the system and then index it appropriately, which requires a lot of work (and a lot of resources).

While it's not really possible to speed up population of the database, you can make it less intrusive by increasing the niceness and io-niceness of updatedb. You can do this by using the nice and ionice utilities, in a manner similar to the following:

nice -n 19 ionice -c 3 updatedb --localpaths=c:/
  • @Elvin If you want to stop it, just send SIGTERM: pkill -x updatedb, assuming you have pkill, or find its PID and kill it (or if it is running in a terminal you have open, press C-c to send SIGINT). – Chris Down Dec 24 '13 at 4:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.