title: Using mkdir -m -p and chown together correctly
body: <p>I would like to create a directory using a bash script and then set the mode to 00755 at the same time</p>
  
  <pre><code>mkdir -p -m=00755 "/dir/dir2"
  </code></pre>
  
  <p>Is this the correct way of using them together and can I also add chown command to the same line while creating them?</p>