Enable ** recursive globbing.
Section: set and shopt
Enable recursive globstar
bash
bash
shopt -s globstar
printf '%s
' **/*.shExplanation
Very handy for script discovery and file operations.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing set and shopt
Inspect command resolution
Show whether a name resolves to an alias, builtin, function, or executable.