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?
|
|
|||||||||
|
Much faster than You can run |
|||||||||||
|
|
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. |
|||
|
|
|
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. |
|||
|
|
|
I sometimes do
probably hugely inefficient however. |
|||
|