mkdir no such file or directory in linux/unix

mkdir no such file or directory

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
mkdir no such file or directory

Tags:

Add a Comment

Your email address will not be published.