Linux – How to recursively find all files in current and subfolders based on wildcard matching

linuxshell

How can I recursively find all files in current and subfolders based on wildcard matching?

Best Answer

Use find for that:

find . -name "foo*"

find needs a starting point, and the . (dot) points to the current directory.