Section: Globbing

Brace expansion

bash
bash
mkdir -p project/{src,tests,docs}

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 Globbing
Match text files
Expand shell glob to files ending in .txt.
OpenIn sheetbashsame section
Recursive glob in Bash
Match files recursively with globstar enabled.
OpenIn sheetbashsame section
Include dotfiles in globbing
Enable matching hidden files with shell globs.
OpenIn sheetbashsame section
Show current path via shell variable
Print current directory using shell state.
OpenIn sheetbash1 tag match
Iterate over files safely
Use NUL delimiters for filenames with spaces/newlines.
OpenIn sheetbash1 tag match
Get basename
Extract the last path component.
OpenIn sheetbash1 tag match