How can I create multiple nested directories in one command?
mkdir -p /just/one/dir
But I need to create multiple different nested directories...
How can I create multiple nested directories in one command?
mkdir -p /just/one/dir
But I need to create multiple different nested directories...
mkdir accepts multiple path arguments:
mkdir -p -- a/foo b/bar a/baz
To add to the above answers you can also do (in csh, tcsh, ksh, bash, zsh, fish, yash -o brace-expand):
mkdir -p /path/{to,a}/{lot,of}/directories
Reading the man page is always a good place to start.
The -p flag will create the required intermediate directories on the path.