I'm several child directories deep and I enter
cd .. and receive this error:
cd: ..: No such file or directory
I am confused- of course there is a parent directory, I'm in it! A little digging shows that my coworker renamed a grandparent directory out from under me and when I tried to move to my parent directory, I got the above error. I tried to reproduce this like so:
server|/n01/data/adf/temp/TEMPTEST/SUB1/SUB2> pwd /n01/data/adf/temp/TEMPTEST/SUB1/SUB2 server|/n01/data/adf/temp/TEMPTEST/SUB1/SUB2> mv /n01/data/adf/temp/TEMPTEST /n01/data/adf/temp/NEWTEMPTEST server|/n01/data/adf/temp/TEMPTEST/SUB1/SUB2> pwd /n01/data/adf/temp/NEWTEMPTEST/SUB1/SUB2
And now I am lost and adrift, changing to the parent directory will give me the same error as before.
server|/n01/data/adf/temp/TEMPTEST/SUB1/SUB2> cd .. server|/n01/data/adf/temp/NEWTEMPTEST/SUB1>
No error. I changed directories successfully. What happened? Why didn't this error like the first time?