title: powershell equivalent of linux "mkdir -p"?
body: <p>How can I get the powershell "mkdir" command to act exactly like Linux's <code>mkdir -p</code> command?</p>
  
  <p>Under Linux, <code>mkdir -p</code> will create nested directories, but only if they don't exist already.  For example, suppose you have a directory <code>/foo</code> that you have write permissions for. <code>mkdir -p /foo/bar/baz</code> creates bar and baz within bar under existing <code>/foo</code>. You run the same command over again, you will not get an error, but nothing will be created.</p>