Skip to main content

Posts

Showing posts from April, 2020

How to create multiple sub-directories in one command from Windows, Linux

In Windows we use the following commands to create a single long path directory and multi-long path directory. Single long path directory md dir-name\dir-name1\dir-name2\...... for eg: md 1\2\3\4\5\... Here single long path directory will be created, which means inside folder "1", folder "2" will be created and inside that folder "3" will be created and goes on... Multi-long path directory mkdir -p dir-name\dir-name1 dir-name2\dir-name3 dir-name4\dir-name5 for eg: mkdir -p 1\2 3\4 5\6 Here multiple long path directory will be created, which means inside folder "1" folder "2" will be created and folder "1" would be the parent folder for this path and inside folder "3" folder "4" will be created and folder "3" would be the parent folder for this path and goes on. In Linux we use the following command to create multiple folders and sub-folders. mkdir -