Back
Why I am not supposed to do something like this?
mkdir folder/subfolder/
To achieve this I have to do:
mkdir foldercd foldermkdir subfolder
mkdir folder
cd folder
mkdir subfolder
Is there a better way to do it?
You can use the below command:
mkdir -p folder/subfolderThe -p causes parent directories to be created if necessary.
mkdir -p folder/subfolder
The -p causes parent directories to be created if necessary.
To know about Linux join the Linux training
31k questions
32.8k answers
501 comments
693 users