Section: set and shopt

Enable recursive globstar

bash
bash
shopt -s globstar
printf '%s
' **/*.sh
Explanation

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
List shopt options
Print optional shell behavior toggles.
OpenIn sheetbashsame section
Enable extended globbing
Enable advanced glob patterns.
OpenIn sheetbashsame section
List set options
Print current shell option settings.
OpenIn sheetbashsame section
Disable pathname expansion
Disable glob expansion.
OpenIn sheetbashsame section
Inspect command resolution
Show whether a name resolves to an alias, builtin, function, or executable.
Show history
Display recent command history.