Why I can't do something like this? mkdir folder/subfolder/
in order to achive this I have to do:
mkdir folder
cd folder
mkdir subfolder
Is there a better way to do it?
You can:
mkdir -p folder/subfolder
The -p
flag causes any parent directories to be created if necessary.