Search code examples
linuxgrepfindls

How to recursively search for files with certain extensions?


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?


Solution

  • You can use the following find command to do that:

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

    iname does a case insensitive search.