Locating Lost Files with locate
If you're looking for a system filethat is, a program or file that is part of the Unix system itself, rather than one of your personal files in your home directorytry locate to find it. You'll get more results than you can handle, but it's a quick and easy way to locate system files.
The locate command isn't available on all Unix systems, but it is worth a try at any rate. See Code Listing 2.13 for locate in action.
Code Listing 2.13. Use locate to find everything everythingrelated to most system files.
To Locate a File: