Create multiple subdirectories with {}

Sometimes we need to create a folder with multiple subfolders with one command. We can use a combination of the flag -p and curly braces {} to create this.

In the example below, we create a master director folder called master, with sub-directories data, pre_processing, model, output:

$ mkdir -p master/{data,pre_processing,model,output}
$ ls -a master
.	..	data	model	output	pre_processing