From a periodically updated database, list all files that match a specified pattern.
The locate command searches a database of files for any name that matches a specified pattern. Your Linux system is set up to update the file database periodically. If you are not sure about the location of a file, just type locate followed by a part of the filename. For example, here's how you can search for the XF86Config file: