shopt-option

Bash dotglob

Allows ordinary filename patterns to include leading-dot names; special dot entries have separate rules.

Formal Syntax & Structure

bash syntaxbash
shopt -s dotglob

Return Value

shell behavior

Allows ordinary filename patterns to include leading-dot names; special dot entries have separate rules.

Working Example

Example Snippetbash
touch visible.txt .hidden.txtprintf '%s\n' *.txtshopt -s dotglobprintf '%s\n' *.txt
Bash Reference