# Just how to Find a documents in FreeBSD

I'm attempting to situate all duplicates of example.filename on my FreeBSD web server. What's the most effective/ most convenient/ most reliable means to do this?

0
2019-05-07 08:46:07
Source Share
find / -name example.filename

0
2019-05-09 02:46:34
Source

If you've obtained situate (also known as slocate) mounted, after that

locate example.filename


situate runs a cron work every evening that reindexes all the files on your equipment. It's not constantly approximately day therefore.

0
2019-05-09 02:42:23
Source

If you have the situate data source up - to - day, after that simply:

locate example.filename

0
2019-05-09 02:40:17
Source

I occasionally do


find . | grep example.filename


possibly widely ineffective nonetheless.

0
2019-05-09 02:36:04
Source
locate filename


Much faster than find, if you're running the situate solution, and also it just locates files that existed at the time updatedb last ran (usualy the evening befor under the control of a cron work).

You can run updatedb by hand, yet that is also slower than the , and also calls for origin. I occasionally upgrade the data source by hand after mounting a number of new things.

0
2019-05-09 02:13:26
Source

Sometimes you intend to find files at a details directory site degree. In this instance it can be hassle-free to make use of covering wildcards:

ls /data/*/example.filename


Obviously this just functions if you have an inflexible directory site framework.

0
2019-05-09 02:03:23
Source