Make Deep Directory, Recursive, As Needed

If you want to make directories in linux and force it to recursively make parent directories as needed, use:

$ mkdir -p foo/bar/baz/lur/man

...will make parent directories as needed.

Source