I have read that to run locate command on CYGWIN first I need to run the following command.
what this command exactly do as I run this on CYGWIN and it is taking too much time.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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
ionice utilities, in a manner similar to the following:
nice -n 19 ionice -c 3 updatedb --localpaths=c:/