How to recursively search for files with certain extensions?

StackOverflowNewbie picture StackOverflowNewbie · May 13, 2011 · Viewed 45.6k times · Source

I need to find all the .psd files on my Linux system (dedicated web hosting). I tried something like this: ls -R *.psd, but that's not working. Suggestions?

Answer

onteria_ picture onteria_ · May 13, 2011

You can use the following find command to do that:

find /path/to/search -iname '*.psd'

iname does a case insensitive search.