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.
for eg:
mkdir -p 1/2/3/4/5/...
Here inside folder "1" folder "2" will be created and inside folder "2" folder "3" will be created and goes on. Only symbol got changed, which means instead of "\" we used "/" here, that's all.
Comments
Post a Comment
Please do not use any spam link in the comment box