Bash find command is the best way to search a file on Ubuntu.

find <directory path> -name <file name>

Here is example, I am looking for a file called “lena.png” in OpenCV source directory. I ran command below.

find <OpenCV source directory path> -name "lena.png"

I got the result below.