Reputation: 59
I would like to create a folder called hello
and a sub folder located inside hello
called world
. I've tried mkdir $HOME/hello/world
but it does not work saying that it cannot create directory since no such file or directory exists. If I try $HOME/hello
I am able to create a folder called hello
inside $HOME
. How do I go about doing this? I do not want to use -p
to create the needed parent folders if they are missing.
Upvotes: 0
Views: 1772
Reputation:
I'm not sure why you don't want to use the -p
flag to mkdir
, but if you insist, you could do this:
mkdir $HOME/hello $HOME/hello/world
Upvotes: 5