Section: set and shopt

List set options

bash
bash
set -o
Explanation

Useful when debugging shell behavior or startup files.

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
Disable pathname expansion
Disable glob expansion.
OpenIn sheetbashsame section
Enable recursive globstar
Enable ** recursive globbing.
OpenIn sheetbashsame section
Enable extended globbing
Enable advanced glob patterns.
OpenIn sheetbashsame section
Inspect command resolution
Show whether a name resolves to an alias, builtin, function, or executable.
Show history
Display recent command history.