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
I am running the following command:
mkdir /mobiledata/Google/Tests/NEW_FOLDER/NEW_SUBFOLDER/
I get an error
cannot create directory ’/mobiledata/Google/Tests/NEW_FOLDER/NEW_SUBFOLDER/: No such file or directory
I think what this means is that when I create NEW_SUBFOLDER/
, the command looks for its parent NEW_FOLDER
and rejects the command because NEW_FOLDER
doesn't exist yet.
Is there anyway for me to run a command that creates the new folder first, then the subfolder? Or another solution?
Thanks.