This question already has an answer here:

Trying to understand, why does ls work, when I do "ls ..TAB-TAB"? It's showing me the contents of /hukarz, but when I press ENTER after "ls ..", it's showing the contents of /foo/bar

cd /hukarz
ln -s /foo/bar bar
mkdir baz
cd bar
touch shme
mv shme ../baz
mv: cannot move 'shme' to '../baz': Not a directory

marked as duplicate by muru, slm Sep 2 at 0:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.