In my shell script, i use mkdir to create a subdirectory but it keeps failing saying the immediate subdirectory does not exist.
mkdir -p /tmp/abc/def
mkdir: 0653-357 Cannot access directory /tmp/abc.
/tmp/abc: A parameter must be a directory
I tried -p -m 755 /tmp/abc/def
I got the same error
What did I do wrong?