Find Files in Linux by Name

To find files in linux with a certain name portion or pattern we can issue a locate locate command.
If locate is unable to find a matching file, then you might need to update your file index database.

# locate journal-2011-07
# updatedb

In the example above we are trying to find a file that has journal-2011-07 in its name which can be journal-2011-07-01, journal-2011-07-02, my-journal-2011-07-09, etc.

You can also use the find command. The find command does not use file indexing algorithm which might be slower than locate.
The example below will look for all files with xml extension inside /home/ronald.
The find command by default is recursive or it will look into subfolders.

find /home/ronald/ -name *.xml