Find a file in linux terminal

There are three useful command to find a file from the terminal in a linux system.

$ find /path/ -iname filename

$ locate -i filename

or just

$ locate filename

and you have grep

$ grep -r -i “searchterm” /path/to/search

-r make the search recursive and -i make it case insensitive.

To locate a program:

$ whereis programName