I'm trying to locate all copies of example.filename on my FreeBSD server. What's the best / easiest / most efficient way to do this?
feedback
|
| |||||||||
feedback
|
Much faster than You can run | |||||||||||
feedback
|
|
If you've got locate (aka slocate) installed, then
locate runs a cron job every night that reindexes all the files on your machine. It's not always up to date for that reason. | |||
|
feedback
|
|
Sometimes you want to find files at a specific directory level. In this case it can be convenient to use shell wildcards:
Obviously this only works if you have a rigid directory structure. | |||
|
feedback
|
|
If you have the locate database up-to-date, then just:
| |||
|
feedback
|
|
I sometimes do
probably hugely inefficient however. | |||
feedback
|