In editors/ides such as eclipse and textmate, there are shortcuts to quickly find a particular file in a project directory.
Is there a similar tool to do full path completion on filenames within a directory (recursively), in bash or other shell?
I have projects with alot of directories, and deep ones at that (sigh, java). Hitting tab in the shell only cycles thru files in the immediate directory, thats not enough =/
locate <file_pattern>
***
find
will certainly work, and can target specific directories. However, this command is slower than thelocate
command. On a Linux OS, each morning a database is constructed that contains a list of all directory and files, and thelocate
command efficiently searches this database, so if you want to do a search for files that weren't created today, this would be the fastest way to accomplish such a task.