No such file or directory – when we use linux mkdir to create a directory, we sometimes encounter this error.
This error is reported because you created a multi-level directory and the intermediate directory does not exist.
To solve this problem, we can use the mkdir -p option to create an intermediate directory as needed.
If the directory already exists, no error will be reported. if the directory does not exist, it will be created.
➜ mkdir -p foo/mk/ww