bash create nested directories code example Example: bash create nested directories ~$ mkdir -p d/s/a/e ~$ cd d/s/a/e/ ~/d/s/a/e$