Finding Files

Command Description Usage
find Finds based on criteria, can be slow but usually finds what you want. find /directory -name "*.txt"
locate Search for filenames and get a return of programs that use this file. locate xterm
which Searches a path only, and returns the first result unless used with -a which mysqld
which -a file.txt
whereis Searches restricted locations (bin/lib, etc) and does not find you average user created files. whereis php.ini