LinuxCommandLibrary

shopt

shopt

TLDR

List of all settable options and whether they are set

$ shopt
copy


Set an option
$ shopt -s [option_name]
copy


Unset an option
$ shopt -u [option_name]
copy


Print a list of all options and their status formatted as runnable shopt commands
$ shopt -p
copy


Show help for the command
$ help shopt
copy

Copied to clipboard