The mkdir command can do more than create a single directory. It can create multiple directories at once and can even create an entire directory structure with a single command. The required command will be a tad complex, but not particularly challenging.
NOTE: If you try to set up a multi-level directory structure with a command like the one shown below, it won’t work if the initial directories (“this” and “that”) don’t already exist.
$ mkdir this/that/the_other
mkdir: cannot create directory ‘this/that/the_other’: No such file or directory
Add a -p (for “parents”) and the missing directories will be created and your this/that/the_other directory structure will be set up in your current directory as intended.
Source:: Network World – Linux