Search Filenames

Often we want to find a file on our system. The locate command offers a quick method for searching for all files in the system containing a string. In our example, we look for all files with bashrc in the name.

Search Filenames In System

locate bashrc

Note that locate might not find recently created files. This is because the database of filenames locate uses is only generated periodically. We can update this database manually using sudo updatedb.