title: How can I make a new folder with a subfolder using a single linux command?
body: <p>I am trying to create a new folder, which has a subfolder inside it.  The new folder is being created in a folder that already exists</p>
  
  <p>I am running the following command:</p>
  
  <p><code>mkdir /mobiledata/Google/Tests/NEW_FOLDER/NEW_SUBFOLDER/</code></p>
  
  <p>I get an error</p>
  
  <p><code>cannot create directory ’/mobiledata/Google/Tests/NEW_FOLDER/NEW_SUBFOLDER/: No such file or directory</code></p>
  
  <p>I think what this means is that when I create <code>NEW_SUBFOLDER/</code>, the command looks for its parent <code>NEW_FOLDER</code> and rejects the command because <code>NEW_FOLDER</code> doesn't exist yet.</p>
  
  <p>Is there anyway for me to run a command that creates the new folder first, then the subfolder?  Or another solution?</p>
  
  <p>Thanks.</p>