bash create nested directories 1

bash create nested directories

~$ mkdir -p d/s/a/e
~$ cd d/s/a/e/
~/d/s/a/e$ 

Here is what the above code is Doing:
1. Create a directory called d
2. Create a directory called s inside d
3. Create a directory called a inside s
4. Create a directory called e inside a
5. Change the current working directory to e

Similar Posts