Apparently you can rename file to
If I were insane, how would I rename file to
.? Is such a filename even allowed?
Backslash doesn't seem to disable dot's special meaning:
$ mv test \. mv: `test' and `./test' are the same file
You can't rename a file to
Backslashes have nothing to do with this, because
On Unix, Dos and MS-Windows every directory has a directory
Therefore you can not name any (other) file
However you can create files
This hidden file behaviour came about in an early implementation of
Explanation of Linked question
In the question you link to the questioner is trying to move the file to the parent directory
When using mv in the form
The problem is you're moving a file onto a directory. This is allowed to fail.
I'm going to tell you how it once was.
mkdir used to essentially read this (while I'm writing this in sh, it was really written in C and setuid-root).
So as you can see there's not much special about . and .. except for the fact they are created for you by mkdir and already exist. There's code now that says you cannot remove them, but it wasn't always the case.
rmdir used to look like this: