Locating a file by name inside the current directory and all subdirectories
find . -type f -name 'nameofthefile.txt'
You can also use the * metacharacter if you want to find every file ending in .txt
find . -type f -name '*.txt'
Find can also search for directory names using the â€˜dâ€™ flag
find /usr -type d -name 'bin'