Finding Files in a Git Bash Terminal

user2679671 picture user2679671 · Jan 29, 2014 · Viewed 32.3k times · Source

I am currently using Git Bash to navigate file directories and edit files. I want to know if there's a command to search the current directory and all directories in it for a file name.

Answer

Todd A. Jacobs picture Todd A. Jacobs · Jan 29, 2014

Yes, it comes with the find utility. To recursively search for a file named "somefile.txt" starting from the current working directory, the following should work:

find . -name somefile.txt