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.
I would like to create a folder called hello and a sub folder located
Share
I’m not sure why you don’t want to use the
-pflag tomkdir, but if you insist, you could do this: