Find is a pretty powerful UNIX command that has a lot of functionality. Unfortunately, this makes it a little difficult to use. In particular, getting it to do what its name implies (locate files) is a little tricky, and the GNU man page doesn’t have a good minimal example of how to use it.
The upshot is that you can use,
$ find DIR -name STR
To recursively search the directory DIR and all its sub-directories for files which have a name of STR. You can also use wildcards as part of STR. For example, so find all C source and header files in your home directory, you could do
$ find ~ -name *.[ch]
This is a video “from the archives”. I recorded it ages ago and stumbled across the file on a hard drive recently. Figured I’d upload it.
[ad_2]
source